There Is No “Wrong” in CSS

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

There is no objectively "wrong" CSS, and four reasons support this claim. First, if CSS works without practical disadvantages, there's no reason to change it, especially given the web platform's strong backwards-compatibility guarantees. Second, any consequences of suboptimal CSS fall on the developer or organization, making it their call to address. Third, CSS is easy to refactor when a better approach is needed, so no mistake is truly grave. Fourth, when CSS creates real barriers for users, that's arguably a platform-level responsibility rather than a developer failure. CSS advice should always be understood as context-dependent guidance, not universal law — and distinguishing advice from dogma is key to evaluating criticism of your code.

5m read timeFrom sitepoint.com
Post cover image
Table of contents
1. If It Works, It Works2. The One Who Suffers Is You3. It’s Easy to Change4. Barriers for Users Are a Web Platform ResponsibilityBut What if Someone Still Says Your CSS Is Wrong?
7 Comments

Sort: