r/webdev • u/RevolutionaryLead994 • Mar 08 '26
Question Struggling with CSS Layouts (Grid, Padding, etc.) - Getting demotivated .Need advice!
I'm a 2nd-year undergradstudent from India currently diving into frontend development. I’m in the initial lectures of my course, but I’m hitting a massive wall with CSS.
Specifically, I’m deeply confused about:
• Padding vs. Margin: When to use which?
• Display: Grid: How does it actually "take over" the layout?
• grid-template-columns vs. grid-column: I keep mixing up the parent properties and the child properties.
Every time I try to make a layout, it feels like I'm just guessing until it looks "okay-ish." I’m starting to get demotivated and wondering if I’m learning this the "wrong" way.
• How did you guys finally "click" with CSS layouts?
• Is there a specific mental model or resource that makes this intuitive?
• Also, as a 2nd-year student in 2026, is frontend still a solid career choice with all the AI tools coming out?
Would appreciate any roadmap or "explain like I'm five" tips for layouts. Thanks!
View all comments
Show parent comment
2
u/shaliozero Mar 08 '26 edited Mar 08 '26
As someone who still wrote sites that had to support IE6-IE11 with fallback layouts if necessary, I'd hate frontend web development if it still was like that. Designer wants to reorder elements on mobile or completely shuffle the layout, texts moving out from one box to the other? What was duplicated elements and bloaty JavaScript is now just a few lines of CSS. 😌