PDA

View Full Version : [CSS] Conditional Comments



NeoDreamer
January 14th, 2008, 11:29 PM
I tried to display one CSS file for FF and a modified CSS file for IE. After inserting this code, I see no CSS at all for FF. IE works fine.



<!--[if !IE]>
<link href="masterFF.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="masterIE6.css" rel="stylesheet" type="text/css" />
<![endif]-->

aldomatic
January 15th, 2008, 11:33 AM
you don't need condition on the masterFF.css file to support all other browsers and I'm guessing FF = Firefox. :)

NeoDreamer
January 15th, 2008, 01:35 PM
If I leave out the conditional on FF's CSS, then both masterFF.css and masterIE6.css show up when I test my site in IE6. I can visually see both stylesheets' styles competing with each other.

aldomatic
January 15th, 2008, 06:58 PM
do you have a link to your site?