We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

mifly on 03/03/08


Tagged

cssHack


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

SpinZ
revmitcz
stil72
gafsveno


Easy Selectors


Published in: CSS 


  1. IE 6 and below
  2. * html {}
  3. IE 7 and below
  4. *:first-child+html {} * html {}
  5. IE 7 only
  6. *:first-child+html {}
  7. IE 7 and modern browsers only
  8. html>body {}
  9. Modern browsers only (not IE 7)
  10. html>/**/body {}
  11. Recent Opera versions 9 and below
  12. html:first-child {}

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: neal_grosskopf on March 4, 2008

Have you heard of conditional comments? http://en.wikipedia.org/wiki/Conditional_comments . They are a lot easier than these CSS Parser hacks.

Posted By: mifly on March 17, 2008

Cool. Thanks.

Posted By: mifly on March 17, 2008

but it suport other browser except IEs?

You need to login to post a comment.