IE Conditional Comments


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

From the TextMate HTML bundle


Copy this code and paste it in your HTML
  1. <!--[if IE]>
  2. IE Conditional Comment: Internet Explorer
  3. <![endif]-->
  4.  
  5.  
  6. <!--[if !IE]><!-->
  7. IE Conditional Comment: NOT Internet Explorer
  8. <!-- <![endif]-->
  9.  
  10.  
  11. <!--[if IE 5.0]>
  12. IE Conditional Comment: Internet Explorer 5.0 only
  13. <![endif]-->
  14.  
  15.  
  16. <!--[if lt IE 6]>
  17. IE Conditional Comment: Internet Explorer 5.x
  18. <![endif]-->
  19.  
  20.  
  21. <!--[if IE 5.5]>
  22. IE Conditional Comment: Internet Explorer 5.5 only
  23. <![endif]-->
  24.  
  25.  
  26. <!--[if lte IE 6]>
  27. IE Conditional Comment: Internet Explorer 6 and below
  28. <![endif]-->
  29.  
  30.  
  31. <!--[if lt IE 7]>
  32. IE Conditional Comment: Internet Explorer 6 and below
  33. <![endif]-->
  34.  
  35.  
  36. <!--[if IE 6]>
  37. IE Conditional Comment: Internet Explorer 6 only
  38. <![endif]-->
  39.  
  40.  
  41. <!--[if gte IE 7]>
  42. IE Conditional Comment: Internet Explorer 7 and above
  43. <![endif]-->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.