|
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.
-
<!--[if IE]>
- pop your html in here
-
<![endif]-->
or to specify pre version 6 browsers.
-
<!--[if lt IE 6]>
- pop your html in here
- <![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 )
|