Hey there, thanks for visiting Painted Foot. This site looks lurvely in any modern browser, but if you’re seeing this message, you’re not using one! Bummer. Check out the newest browser versions from Firefox, Netscape, Opera or Microsoft . Download a copy today because you're missing out. If you’re seeing this on a thin client (cell phone, PDA, etc.), as you were.

Blog
IE Hacks: Dos and Donts PDF Print E-mail
Written by Catherine F. Laine   
Sunday, 04 June 2006

Ai ya yai! Just when you think you've gotten used to the quirks of IE, they go and change things on you. 

  Here is a short list of hacks that you may want to avoid or that are soon to be deprecated in IE7.

  • !important: Many developers argue that one should not use "!important" to get around IE issues. It was intended to give the user more control over the viewing experience, by allowing user style sheets to override the authors'. "This CSS feature improves accessibility of documents by giving users with special requirements (large fonts, color combinations, etc.) control over presentation." (From W3 CSS Specification Ch 6). Harumph!
  • body > #top { ... } : Say goodbye to those child selector hacks. IE 7 recognizes them now. Oh for the love of God! http://css-discuss.incutio.com/?page=ChildHack
  • head:first-child + body : Deprecated.
  • Read this post from the IE Blog for the rest of the bad news.


What is a coder who likes their sanity to do?

Conditional statements darling, conditional statements.

  1. <!--[if IE]>
  2. pop your html in here 
  3. <![endif]-->

 

  or to specify pre version 6 browsers.

  1. <!--[if lt IE 6]>
  2. pop your html in here
  3. <![endif]-->

 

Here "lt" means less than.  For less than and equal to use "lte".

To non-IE browsers they are just comments. But do IE they are juicy pearls.

Last Updated ( Monday, 05 June 2006 )
 
< Prev   Next >



 
Painted Foot © 2006
Appropriate Infrastructure Development Group