I'm trying to override a few css selectors that are causing problems in IE6 by using the following code inside the head tag in an html file:
<!--[if IE 6]
<style type="text/css">
@import ("ie6.css");
</style>
<![endif]-->
This code comes after the main stylesheet loads, and no other stylesheets get loaded after the conditional comment. For some reason, browsing the site using IE6 doesn't load the IE6 css file. I've tried numerous variations on the syntax and I've also tried using a link tag instead of style import, all to no avail.
I do have some JavaScript that dynamically alters some style properties for the same elements that the selectors are for, but I don't think that is the problem because when I just replace the same selectors in the main css file, everything works as expected. So it would seem that the IE6 css file never loads.
Any thoughts or ideas will be greatly appreciated. Thanks.