5 ms·
CSS resets are bad idea and shouldn't exist. Every time you see paragraphs without margins, or lists without bullets, it is probably a fault of CSS reset.
by codedokode 3y ago
CSS resets are bad idea and shouldn't exist. Every time you see paragraphs without margins, or lists without bullets, it is probably a fault of CSS reset.
- contravariant 3y agoNo you see giving users any agency over how your website is displayed is a bug and needs to be fixed. User agents be damned.
- akira2501 3y ago...and by all means, ignore how it looks printed.
- deleted 3y ago[deleted]
- lmm 3y agoCSS resets wouldn't be necessary if browser default styles weren't awful, but here we are. The default browser styling is the worst of all worlds: not enough to make an unstyled page look good (partly the result of the terrible text size inflation trend, which is a whole other rant), but enough to get in the way for a page that's been deliberately styled.
- codedokode 3y agoCSS reset is worse than any default browser style: in browser paragraphs are separated and lists have bullets. With CSS reset, there are no styles at all, and the page looks like unformatted text.
- lmm 3y agoI don't think anyone ever uses a CSS reset on its own, the point is to reset and then put your own style on. Browser default styles aren't really good enough to be usable IMO; yes they have paragraphs but with zero margin and tiny text they're not exactly readable. Twitter Bootstrap is pretty much a bug report against the browser default style. Given that current browser default styles are half-assed at best, I'm sympathetic to the idea that not having a default browser style at all would be better.
- bdlowery 3y agoYou use a css reset and then apply your own styles… The whole point is to make everything look the same across every browser in existence. Also to remove collapsing margins.
- codedokode 3y agoCollapsing margins are actually a good thing. If I designed CSS from scratch, I would make all margins collapsing, because you typically want 1em margin between paragraphs, not 1 + 1 em.