IE7 css hack

We had all hoped the the new version of Internet Explorer would end all our css woes and to a large extent it has.

Unfortunately, the (* html) known as the star hack that was necessary for earlier versions of Internet Explorer is now ignored by IE7.

This caused a few minor problems on my business site and so off I went and googled a fix for the problem.Easier said than done… all I wanted was something similar to the star hack since my site doesn’t use too much css.

Well I found one and here it is


*:first-child+html {}

Yep, its that weird – you type it in exactly as it is above.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Live
  • Google Bookmarks
  • BlinkList
  • FriendFeed
  • Ping.fm
  • StumbleUpon
  • Technorati
  • Mixx
  • Reddit
  • Blogosphere News
  • Fark
  • Identi.ca
  • LinkedIn
  • Sphinn
  • TwitThis
  • E-mail this story to a friend!
  • Print this article!