XSL IE6 Help

wxdqz

New Member
Hello,

I have a problem, I am redoing my sites to be compatible with everything Moz, IE6 and IE7.

Before to work around the IE6 bugs we have a iehacks.css file containing all the 'height: 1%' and 3 pixel jog fixes etc... using the below code:

<xsl:if test="contains(/Page/Request/ServerVariables/Item[@name='HTTP_USER_AGENT'], 'MSIE') and not(contains(Request/ServerVariables/Item[@name='HTTP_USER_AGENT'], 'Opera'))">
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"css/ie6hacks.css" />
</xsl:if>

But that codes applys the css to all IE's. Now IE7 has fixed those bugs, my question is:

How do I only get it to apply to IE6 and below or NOT IE7?
 
Back
Top