Responsive

I made this design using position: absolute on every single element and moved it using top, left, bottom, right, and, of course, it is not responsive. That's what I need help with. Can I do something so that it just decreases in size, like just decreases? I know it will get hard to read on mobile devices, but how can it decrease? That's what I am asking. Any other methods are also welcome to make this page responsive.
66 Replies
ἔρως
ἔρως5mo ago
you've positioned everything in a way that works for a desktop resolution you can look into better tools, like grid, or just write the positions manually for all elements, for all size stops you want to support
Smix
Smix5mo ago
Actually this is not really a good way to go about it. Use a grid and try to choose only one value either width or a height, set the other one as auto. Also, positioning everything absolute is not a good idea, its harder to maintain the flow for responsive. Try adding it to code pen so we can see better what is actually going on.
ἔρως
ἔρως5mo ago
Actually this is not really a good way to go about it
that's a nice way to put a terrible idea in
Code-S ♛
Code-S ♛OP5mo ago
Ill put it in code pen once i get on sorry guys went to the hospital so i was just too busy today anyways here is my code pen
ἔρως
ἔρως5mo ago
my position stands: this is a terrible idea and there's no good way to make it responsive with position absolute
Code-S ♛
Code-S ♛OP5mo ago
yeah my bad i should have used flexbox
ἔρως
ἔρως5mo ago
or grid this looks like a grid thing
Code-S ♛
Code-S ♛OP5mo ago
isnt grid like used for table like things
ἔρως
ἔρως5mo ago
no, that's a <table>
Code-S ♛
Code-S ♛OP5mo ago
i am an absolute beginner
ἔρως
ἔρως5mo ago
a grid is to put things ... in a grid perfectly aligned with other elements
Code-S ♛
Code-S ♛OP5mo ago
grid confuses me i watched a video once and there were like axis 1,-1,2,-2 i didnt understand those
ἔρως
ἔρως5mo ago
that's if you want to put stuff in specific grid spaces more often than not, you don't need to touch that
Code-S ♛
Code-S ♛OP5mo ago
mind if you can send me a youtube video for a grid? and where can i practice grid like i practiced flexbox with online games but where to practice grid?
ἔρως
ἔρως5mo ago
i don't have any materials that teach it
Code-S ♛
Code-S ♛OP5mo ago
i completed my CSS and HTML course should i start making a project or move on with javascript and bootstrap? np
ἔρως
ἔρως5mo ago
https://jsfiddle.net/u7ko8zar/ <-- here's a basic grid
Edit fiddle - JSFiddle - Code Playground
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
ἔρως
ἔρως5mo ago
1fr is just 1 part of the size that's available
ἔρως
ἔρως5mo ago
https://jsfiddle.net/u7ko8zar/1/ <-- if you check this version, you see that the 1st one is half the size of the 2nd one, and the 3rd one is the same size and the 1st and 2nd ones combined
Edit fiddle - JSFiddle - Code Playground
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
ἔρως
ἔρως5mo ago
which is what grid-template-columns: 1fr 2fr 3fr; does
Code-S ♛
Code-S ♛OP5mo ago
:thanks:
clevermissfox
clevermissfox5mo ago
KPow has a whole playlist on grid. There are tons of resources out there to learn about and practice and play W css grid. Plus the dev tools have flex and grid specific tools as well. https://youtube.com/playlist?list=PL4-IK0AVhVjPv5tfS82UF_iQgFp4Bl998&si=SvFdq3Q5BINuow80
YouTube
CSS Grid videos
The CSS Grid is here, and it's awesome. This playlist is a collection of all the videos I do where I use the CSS Grid, whether it's a tutorial specific to us...
Code-S ♛
Code-S ♛OP5mo ago
Tysm
ἔρως
ἔρως5mo ago
i strongly suggest using firefox to practice grid
Code-S ♛
Code-S ♛OP5mo ago
you mean the browser? how does that help?
ἔρως
ἔρως5mo ago
the grid tools are leagues and bounds better lets just say that chrome has the shittiest barest minimalistically minimal to say it "supports" grid and flex
b1mind
b1mind5mo ago
This is not the case anymore Only thing FF devtools* has over chrome for grid is better name line placement, but chrome has it on toggle.
Code-S ♛
Code-S ♛OP5mo ago
how can i toggle it on? then i wont have to download firefix right?
b1mind
b1mind5mo ago
If your not using names lines or areas don't worry to much about it yet, but you have the layout tab in devtools
Code-S ♛
Code-S ♛OP5mo ago
oh yeah
ἔρως
ἔρως5mo ago
it still sucks compared to firefox firefox shows you all the layout and the col/row numbers
b1mind
b1mind5mo ago
So does chrome Again it does nothing more now
ἔρως
ἔρως5mo ago
oh, it does now it didnt a few months ago
b1mind
b1mind5mo ago
Has for years
ἔρως
ἔρως5mo ago
it sucked a lot really? ive always struggled with chrome
b1mind
b1mind5mo ago
I use edge so they have even better dev tools team But shouldn't matter chrome still does it
ἔρως
ἔρως5mo ago
thats one thing that microsoft did well with ie: the dev tools were decent, if the browser didnt crash it's pretty underwhelming for flex, but does the thing
b1mind
b1mind5mo ago
Yea edge devtools helped get subgrid working in chrome and the selector perf tab Does FF do something different? Pretty much same with flex too 🥲
Code-S ♛
Code-S ♛OP5mo ago
i have completed css and html what would you guys suggest now? make a project or just move on with javasript and bootstrap
b1mind
b1mind5mo ago
More CSS and html
Code-S ♛
Code-S ♛OP5mo ago
advanced?
ἔρως
ἔρως5mo ago
more and more and more always more make a project, then another and then another
Code-S ♛
Code-S ♛OP5mo ago
i just made it and its like so bad i hate it
ἔρως
ἔρως5mo ago
redo it
Code-S ♛
Code-S ♛OP5mo ago
its a never ending journey
b1mind
b1mind5mo ago
I've been learning modern web dev for past 4 years 🥲 still didn't complete html/CSS/jss Never complete 🫠
Code-S ♛
Code-S ♛OP5mo ago
didnt you understand it or didnt get the time?
b1mind
b1mind5mo ago
It never ends lots to learn
ἔρως
ἔρως5mo ago
firefox has this, which is useful for when the items wrap or overflow or dont touch the entire width
No description
Code-S ♛
Code-S ♛OP5mo ago
ill try to land a remote internship hopefully can i?
b1mind
b1mind5mo ago
Who knows
Code-S ♛
Code-S ♛OP5mo ago
it would be hard but there is nothing that makes me stand out from the market also a newbie
b1mind
b1mind5mo ago
I can say that remote work for beginners is very rare
Code-S ♛
Code-S ♛OP5mo ago
uhhh i literelly dont understand 50% of what you guys say
ἔρως
ἔρως5mo ago
DO NOT (and i cant stress this enough) DO NOT ACCEPT UNPAID INTERNSHIPS
Code-S ♛
Code-S ♛OP5mo ago
why? i will learn alot tho
ἔρως
ἔρως5mo ago
thats showing the layout of a flex element. here's another example, with flex-grow, flex-shrink and flex-basis set to 30px
No description
ἔρως
ἔρως5mo ago
you wont learn anything, you will be a pawn to do the boring menial shit nobody cares about, because you are literally slaving yourself you think you will code? you will write documentation until your keyboard begs you to stop
Code-S ♛
Code-S ♛OP5mo ago
whats the best option then? freelnace? i cant do that either right now because i am a beginner or can i? your scaring me
ἔρως
ἔρως5mo ago
you can do documentation for an open source project, or even try to tackle bugs or write examples of how to use xyz
b1mind
b1mind5mo ago
Getting way ot though
Code-S ♛
Code-S ♛OP5mo ago
ill apply for paid internships
ἔρως
ἔρως5mo ago
i agree
Code-S ♛
Code-S ♛OP5mo ago
ill make another project with the css and html i learned so far i just need to find a beginner friendly project
ἔρως
ἔρως5mo ago
you will find
Want results from more Discord servers?
Add your server