IE Conditional CSS


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Use "\9" to target IE8 and below.
  2. Use "*" to target IE7 and below.
  3. Use "_" to target IE6.
  4.  
  5. Example:
  6.  
  7. body {
  8. border:1px solid red; /* standard */
  9. border:1px solid blue\9; /* IE8 and below */
  10. *border:1px solid orange; /* IE7 and below */
  11. _border:1px solid blue; /* IE6 */
  12. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.