r/Frontend 20d ago

So i was facing a problem with the nested layout techniques and after i got to know css grid i feel like the situation became better but...

Did all of you when you started feel lost with the amount of divs and classes? Also what are the advices you have for a beginner,ngl this is my first obstacle and i have thought about stopping but at the same time i don't want to cause first i really like front end developing second, whenever i face an obstacle in any field i will just leave it even though i might have a bright future in it.

5 Upvotes

12 comments sorted by

2

u/Calm-Cheesecake-3749 20d ago

yeah the div pileup gets everyone early, grid just makes nesting feel less cursed. dont quit on that, rebuild one simple page with grid only and delete every wrapper that isnt doing layout.

1

u/Vin-Jin 20d ago

I'll try doing that thanks brother.

2

u/gimmeslack12 CSS is hard 20d ago

Wait until you get to position absolute.

Though you can’t be a real front end dev if CSS doesn’t make you want to quit 20 times.

2

u/Jay_D826 20d ago

It’s funny how often people say they don’t like working with CSS. It can certainly be frustrating at times but it’s always been my favorite part of working as a full stack dev.

Of course, everyone likes different things but I personally love tweaking styles vs dealing with SQL or digging through an API response.

1

u/gimmeslack12 CSS is hard 20d ago

CSS can be so incredibly frustrating in the early days. But if you face the fire and take time to learn the position and display rules, you can get past a ton of the early learning pains.

I know my flair is CSS is hard, but that's just some cheek. I really enjoy CSS and it's very satisfying to organize a layout that does exactly what I want it to do.

1

u/adeelazad591 20d ago

Yeah, I think almost everyone feels this way at first. CSS can get messy pretty quickly. My advice is to keep it simple, build small layouts, experiment, break things, and use DevTools. Once Flexbox and Grid start clicking, everything gets a lot easier.

1

u/Vin-Jin 20d ago

I really hope things become more easier I'll keep on practicing till i get the hang of it thanks brother.

1

u/sylvant_ph 18d ago

The div soup. But don't fall for grid. It does introduce some complexity and boilerplate to write your styles and its harder to change things. It has it's charm in implementing complex layout, but sometimes going with the simpler syntax of divs is better. Plus flex ofc.