Conditional comments DO work, but embedding them in your code like that isn't generally the way to use them. There's an ever better way to utilize conditional comments that I'm using now, and it works a treat.
Quote:
<!--[if IE 7]><html class="ie7" lang="en-US"><![endif]-->
<!--[if IE 8]><html class="ie8" lang="en-US"><![endif]-->
<!--[if gt IE 8]><!--><html lang="en-US"><!--<![endif]-->
|
What that does, obviously, is add the .ie7, or .ie8 class to the html, then you can apply styles needed to force IE to behave in a single CSS file, just by using that class name, for example:
Quote:
|
.ie7 #content{rules here to fix IE7 problems}
|
No additional css files needed for each version of IE.
I've also pretty much stopped using the clearing method on some html element and use this instead:
Quote:
/* self-clear floats */
.group:after {
clear: both;
content: "\0020";
display: block;
height: 0;
overflow: hidden;
visibility: hidden;
}
/* IE 7 self-clear floats */
*:first-child+html .group,
*:first-child+html div.article-body,
*:first-child+html #wrap {
min-height: 1px;
}
|
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|