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
3
u/BrohanGutenburg Nov 04 '25
It partially comes with time. The css fundamentals in The Odin Project is a great way to get the hang of flexbox and grid.
As far as which one to use when, a lot of times either will work and it honestly doesn't matter. But if my experience is any indication, grid is used more often in the real world because you get much more control. That being said, a good rule of thumb (that might be obvious) is if you have just one row or column use flexbox, otherwise use grid
1
u/saguarox Nov 15 '25 edited Nov 15 '25
If you haven’t yet, Kevin Powell YouTube is a must for css resources . Both for fundamentals and modern properties
Flex versus Grid: do elements need to be their intrinsic size (content and padding) or do you need cols of equal ratios (1:1 1:2, 2:3, etc)? Grid is where the parent defines the size and the children fit into those cells; with Flexbox the children define the layout with their size. Hacking Flexbox to act like grid (and vice versa)can be done but each tool shines when used for the right situation.
2
u/[deleted] Nov 04 '25
[removed] — view removed comment