News for hackers. Stuff that matters.
Re:Being picky about a CSS reset for fun by wwweston on Sunday October 15, 2023 @06:15PM (#37893888)
I guess I'm definitely a #1 person, because I don't understand how #2 relates. By all means, standardize all the things to remove variation -- that resonates pretty strongly with me. But I don't get how "standardize" shifts to "zero-out."
Re:Being picky about a CSS reset for fun by makeitdouble on Sunday October 15, 2023 @07:56PM (#37894533)
When you standardize on any other number you have to remember it and account for it.

For instance if you settle for 2em margins, all you other margin calculations need to remember that 2em value, and you also need to teach all your new coworkers the 2em value. That's dramatically less needed if it's 0.

Re:Being picky about a CSS reset for fun by wwweston on Sunday October 15, 2023 @08:41PM (#37894758)
Remembering / managing multiple margin values is a conversation that I can definitely relate to having about a design system or custom CSS.

For a reset/normalization sheet focused on sane standardized defaults? Seems like we'd be talking about two numbers: whatever vertical margin you want for your block level elements that you'd expect to have margins (most likely 1em) and 0.

Where are the other numbers coming from in the context of a reset?

Re:Being picky about a CSS reset for fun by fyrn_ on Wednesday October 18, 2023 @11:19PM (#37937934)
There's other stuff besides numbers, like box-sizing and display that you uave to remember if you don't reset them.