Why is Stylesheet loaded when Contional Comment states it should be ignored?
I thought conditional comments would instruct the browser to ignore the content if the condition is not met?!
For example I want to only include a stylesheet if IE6 is the browser. The following in located in the <HEAD> element of the page.
<!--[if IE 6]> <link id="IE6StyleSheet" rel="Stylesheet" type="text/css" href="~/css/IE6.css" runat="server" /> <![endif]-->
<!--[if IE 6]> <link rel="Stylesheet" type="text/css" href="../css/IE6.css" /> <![endif]-->
How come IE7, IE8 and FF3 all load that stylesheet?!
NOTE: Changing the condition to [if lte IE 6] does not make any difference! :(
I am a moron... I just noticed what I did wrong!
The example I'd given was slightly modified. The path to the css file in under App_Themes! Of course the css was always loaded!!!