I cannot seem to get conditional css comments to work so that I can call additional css files for IE6, and one for IE7.
I know this subject has been discussed on the forums and most threads point back to Chris's solution . This solution does not work for me as I just want specific additional CSS files to load for IE6 and 7.
I have tried AUG 10 solution (below) and that works in IE, but completely borks the layout for FF, Safari, Chrome etc.
--------------------
Replace
<!--[if IE]>
with
<script language="javascript"> document.write("\<\!--\[if IE\]\>"); </script>
And replace
<![endif]-->
with
<script language="javascript"> document.write("\<\!\[endif\]\-\-\>"); </script>
--------------------
I have turned off 'Compact HTML/CGI' and just used the normal code (below) but that hasn't even made a difference. Is there another trick I can use?
<!--[if IE 7]>
<link type="text/css" rel="stylesheet" media="screen" href="base-ie7.css" />
<![endif]-->
I know this subject has been discussed on the forums and most threads point back to Chris's solution . This solution does not work for me as I just want specific additional CSS files to load for IE6 and 7.
I have tried AUG 10 solution (below) and that works in IE, but completely borks the layout for FF, Safari, Chrome etc.
--------------------
Replace
<!--[if IE]>
with
<script language="javascript"> document.write("\<\!--\[if IE\]\>"); </script>
And replace
<![endif]-->
with
<script language="javascript"> document.write("\<\!\[endif\]\-\-\>"); </script>
--------------------
I have turned off 'Compact HTML/CGI' and just used the normal code (below) but that hasn't even made a difference. Is there another trick I can use?
<!--[if IE 7]>
<link type="text/css" rel="stylesheet" media="screen" href="base-ie7.css" />
<![endif]-->
Comment