TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The CSS Reset Contradiction

2 pointsby gslin6 months ago

1 comment

zoezoezoezoe6 months ago
&gt; It should be obvious to say that if—or once—all user agents handle CSS the same way, there’s no need for a CSS reset.<p>I think I disagree, for one, browsers default is not what we expect, a few weeks ago I forgot to put `&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;` in the head tag of a website I was building and nearly lost it. A CSS reset isn&#x27;t just to standardize browsers, it&#x27;s to make building on the web in this decade usable. Chrome, Firefox, or whatever you&#x27;re using is never going to change it&#x27;s default style sheet because we want it to, they are always going to prioritize the default behavior of the web. The web is so unfathomably old, and browsers will always aim to keep the way the web works the same. A CSS reset, while not strictly necessary to write websites, will <i>reduce</i> the amount of hair pulling you must endure to do it.