Skip navigation.

clever blog title

clever blog subtitle

Posts tagged with "internet explorer"

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
January 2010
S M T W T F S
December 2009February 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