News for hackers. Stuff that matters.
Re:Being picky about a CSS reset for fun by crazygringo on Sunday October 15, 2023 @05:23PM (#37893513)
Yup. In my experience, the main argument for #2 is that it's just too hard to remember/bother with what some default margin or padding is in the first place.

If it's nonzero, it's always going to be something extremely arbitrary, and will almost never be the value that matches your design anyways.

Best to just nuke it all and make every positioning decision consciously. And when you forget to set something, it'll be quite obvious where it needs to be fixed.

There are no comments on this comment yet.