Posted By

nerdfiles on 01/08/10


Tagged

css ie hacks


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

LeeRJohnson


IE CSS hacks


 / Published in: CSS
 

Many developers are passing around incorrect syntactic variations of these hacks.

  1. *property: value; /* catches IE7 and lower; various other non-standard characters will work here, e.g., @property, ^property, and so on */
  2.  
  3. _property: value; /* catches IE6 */
  4.  
  5. property: /*\**/ value\9; /* catches IE8 only */
  6.  
  7. property /*\**/: value\9; /* catches IE8, IE7 (and maybe IE6) */
  8.  
  9. property: value\9; /* much simpler, catches IE9; and no, "value\8", etc will not work */

Report this snippet  

You need to login to post a comment.