If your code works and you don’t know why…
Pause.
Don’t touch it immediately.
Add comments.
Future you will say thank you
Developer life is funny like that
Web Dev Tip
If your layout spacing feels messy, stop adding margins everywhere.
Use gap in Flexbox & Grid instead.
Cleaner code. Fewer bugs. Better layouts