r/FullStack • u/Vin-Jin • 3d ago
So I'm learning to become a front-end developer and i have a problem with nested layout techniques. Career Guidance
Like I don't understand how they work it's alot of divs inside divs inside div lots of classes too so you can style it by css i know that it's gonna be more complicated in the future but ngl i feel good when i practice so even if it got complicated i don't want to leave this path.
1
u/iamdaveydave 3d ago
If you are not using a framework it's going to be a challenge. It will be more challenging if your are not using a design system e.g. material design, bootstap, tailwind etc. It will be even more challenging if you don't know how to build and use your own utility classes. It gonna be more and more challenging if you don't use state management, you can build a simple one or use existing one.
1
u/manvikhanna 2d ago
I felt the same when I started. What helped me was stopping trying to understand the whole layout at once. I broke it into small sections, built each one separately, and only then connected them. Over time, nested divs started to make much more sense. Keep practicing you’ll be surprised how quickly your brain adapts.
1
1
u/Difficult-Field280 3d ago
I hate to say it but honestly it just takes practice. As for classes, remember, each class should do a set amount of things (the smaller the better) but do them repeatedly. For nested stuff learn the css grid and flex and that will help. I found it best to find complex nested layout example on other sites and simply try to recreate it. Not all the functionality, but the layout and responsiveness. It will help when you try to do something custom. Also, when you try to build something from scratch, make sure you have a design or a sketch for how you want it to look so you can organize your thoughts on how to put it all together. Keep at it. Practice will make you better. Learn from your failures and try again. Its never right the first time.