Before: Tag Soup. After: CSS Clutter

In From Tag Soup to CSS Clutter, Martijn ten Napel talks about how browser specific hacks have moved from HTML to CSS.

I try to avoid using CSS hacks, but if that’s the only way to make an important part of a site work consistently across browsers, I’ll sometimes use stuff like the Box Model Hack or the Commented Backslash MacIE5 CSS Hack.

I dislike coding around browser incompatibilities, but I think doing it with CSS hacks is a lot better than using JavaScript browser detection, which will eventually break (and obviously fails when JavaScript is disabled), or server-side detection to send different HTML to different browsers. The CSS way, everybody gets the same HTML, which can be properly structured with semantic markup. So, if part of the page doesn’t look exactly the same in browser B as it does in browser A, that’s no big deal, since the content is there and is accessible.

  • August 3, 2003
  • Comments closed
  • Posted in

Sorry, comments are closed for this post.

Information, sponsorship, and externals

About the author

Roger Johansson is a Swedish web professional specialising in web standards, accessibility, and usability. More about me and this site.

Subscribe

Looking for web hosting?

Try DreamHost!

Use the promo code 456BEREASTREET3 to save USD 20 when you sign up!

Latest articles

Validation statistics from Nikita the Spider Comments off
An analysis of the sites crawled by the bulk validation tool Nikita the Spider during March 2008.
Authentic Jobs API and Affiliates program Comments off
The Authentic Jobs job listing service now has a public API and an affiliate program.
What does Acid3 mean to you and me? Comments off
Opera and Apple have announced that their web browsers pass the Acid3 Browser Test, but how will that help web designers and developers?
Designing Web Navigation (Book review) Comments off
Learn the fundamentals of navigation design and design better navigation systems for large and small sites as well as for web based applications.
DOMAssistant bundle for TextMate Comments off
To save keystrokes and speed up development I have created a DOMAssistant bundle for TextMate.
First impressions of Internet Explorer 8 Beta 1 Comments off
My impressions after trying out Internet Explorer 8 Beta 1 for a couple of days.

More articles

Favourites, here and elsewhere

Affiliation

  • NetRelations
  • Kaffesnobben
  • Dagens recept
  • 9rules network member

Support this site

Show your support by buying a book or two from SitePoint or getting me something from my Amazon Wish List.