Internet Explorer Conditional Comments
-
Hello,
I have this theme that – unfortunatelly – has to use some IE6-specific CSS. I’m using the IE conditional comments (better than hack the CSS file in my opinion) but WordPress seems to be stripping it out of the final code.
As an example, say I have this in my header.php:
<style type=”text/css”>
#header { margin:1px 1px 1px 1px; }
</style><!–[if IE 6]>
<style type=”text/css”>
#header { margin:55px 55px 55px 55px; }
</style>
<![endif]–>The problem is, when I visit my blog and check out the source code of the page, the conditional comments above are missing, so the rules specifically for IE6 don’t work.
How can I fix this? Or is it a bug on WordPress 2.6x ?
I’m using the latest version as of now: 2.6.2
Thanks,
Leandro
- The topic ‘Internet Explorer Conditional Comments’ is closed to new replies.