My (Not-So) Elusive Habitat…
-
Shared Borealis Yarns.— 14h ago via Delicious
-
— September 3rd via Delicious
-
— August 31st via Delicious
-
<table> of contents
- Announcements (2)
- CSS Tricks (2)
- DePaul University (13)
- Flash/ActionScript (1)
- Front (1)
- Ink (1)
- Local Events (2)
- Projects (3)
- Random Thoughts (1)
- Uncategorized (3)
- Web Standards (4)
-
Latest Posts
Category Archives: CSS Tricks
Conditional Comments for Exceptional CSS
A clever way to write specific exceptions for various versions of IE, without doing CSS hacks that rely specifically on browser bugs, is to assign a unique ID to the <body> tag of your page using conditional comments.
<!--[if !IE]> -->
<body>
<!--<![endif]-->
<!--[if IE 8]>
<body id="IE8">
<![endif]-->
<!--[if IE 7]>
<body id="IE7">
<![endif]-->
<!--[if IE 6]>
<body id="IE6">
<![endif]-->
Then, to write an exception of code [...]




Going Mobile