Skip navigation.

clever blog title

clever blog subtitle

Posts tagged with "css hacks"

CSS hack for IE8 Standards Mode

, , ,

Well, someone had to find one eventually...:-)

IE8 Standards-Mode Only:
.test { color /*\**/: blue\9 }

All IE versions, including IE8 Standards Mode:
.test { color: blue\9 }


You should probably use conditional comments instead, but sometimes a good old-fashioned CSS hack can get you out of a bind (especially when you don't want to have to grab another external stylesheet).

edit: Hmm, paul.irish in the comments mentions that this also affects IE7. I could have sworn I tested it in IE7...anyway, keep that in mind if you use it. I'll try to figure out what's up.
Download Opera, the fastest and most secure browser
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31