Home > CSS > IE 8 CSS Hack

IE 8 CSS Hack

April 9th, 2009

In some cases, IE8 still can’t render CSS correctly. This is the magic trick to target only IE 8 .

.selector { property /*\**/: value\9 }

ex:
.myText { color /*\**/: #cc0000\9 }

CSS , ,

  1. Gman
    October 6th, 2009 at 20:34 | #1

    Works for me tank you.

  2. November 19th, 2009 at 08:02 | #2

    Thanks for your IE 8 CSS Hack.

  3. March 3rd, 2010 at 07:27 | #3

    There is a simple way to do it.
    for example.
    .myText { color:#CCCCCC; }
    you only need to add “” after it.

  1. April 27th, 2009 at 10:43 | #1
  2. May 7th, 2009 at 04:23 | #2