We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


Posted By

heinz1959 on 12/12/07


Tagged

ie textmate browser conditional


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

Davin
SpinZ
dragonSG


IE Conditional Comments


Published in: HTML 


From the TextMate HTML bundle


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

Report this snippet 

You need to login to post a comment.