Posted By

cromozooom on 10/28/10


Tagged

ie6 ie7


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

cromozooom
kwameboame


Target IE6 and IE7 Browsers without Conditional Comments


 / Published in: CSS
 

URL: http://sixrevisions.com/css/10-random-css-tricks-you-might-want-to-know-about/

  1. div {
  2. background-color: #999; /* all browsers */
  3. *background-color: #ccc; /* add a * before the property - IE7 and below */
  4. _background-color: #000; /* add a _ before the property - IE6 and below */
  5. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: jech on October 28, 2010

invalid in w3validator :D

You need to login to post a comment.