Blog Post RSS ?

Blogs » JavaScript & CSS » Essential CSS hacks
 

Essential CSS hacks

by Simon Willison

Doug Bowman: Filtering CSS. Doug introduces a brand new CSS filter, fresh from the mind of Tantek Çelik. The IE5/Mac Band Pass Filter provides a simple, reliable way of serving up a style sheet to IE5/Mac and only IE5/Mac. Armed with this filter, any IE5/Mac specific CSS bugs can be quickly and tidily negated with a browser specific work-around, safely contained in its own stylesheet.

Combine that with Tantek’s Mid Pass Filter, which does the same for all IE5 versions on Windows, and the vast majority of browshser-specific CSS problems simply go away. No more need for ugly box-model hacks and in-line workarounds for those browsers, just funnel them off to their own stylesheets and concentrate on producing standards compliant, “correct” CSS for everything else.

Don’t miss Doug’s excellent explanation of the new filter either; it’s the clearest description yet of how one of these obscure pieces of browser voodoo magic actually works.

For even more detailed coverage of CSS hack management, look no further than Molly E. Holzschlag’s latest InformIT article. Writing practical, cross-browser CSS just got a whole lot easier.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. 101 Essential CSS Tips, Tricks & Hacks The team at SitePoint is pleased to announce a new...
  2. 5 Reasons to Avoid CSS Hacks and Conditional Stylesheets CSS hacks and conditional style sheets can cause more problems...
  3. How to Override Inline CSS Styles Inline CSS can be applied to any HTML element using...
  4. 10 Essential Tips For Landing Your Next Job There have been almost 80,000 layoffs in the tech sector...
  5. The New W3C Website Goes Live … With Invalid CSS! The new and overdue W3C website redesign has been completed....

This post has 8 responses so far

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...