r/learnprogramming • u/Meagrer_Rot • Nov 04 '25
Am i missing something?
I've been self-learning frontend web development for about a month and a half now, and I'm really catching on except for positioning and creating a fluid webpage. I've studied grid, flexbox, positioning, block, and inline elements, and I think I understand what each one does, but when it comes to practice, I get stuck on which one to use or how to approach it. Am I missing a separate lesson? Should I study web design as well, or does it just come with time?
2
Upvotes
View all comments
Show parent comment
1
u/saguarox Nov 20 '25
What is your desired layout ? Should it look like a grid whrre you have equal ratios of columns (whether that is four columns of equal size or three columns where col one is 2x the size of cool two and col three)?
Or do you want it to fit to the size of the content, like a tags list where the item takes up the maximum amount of space it needs given the length of the words and the padding?
To keep it as simple as possible, if desired layout looks like a grid, css grid is likely what you want and you set the sizes of the columns in the grid template. If the items are their intrinsic size and should only take up the space of their max-content (eg don’t need consistent sizes) use flexbox. Kevin Powell has some videos about this , choosing which to use that may be helpful .