Jump to content


Photo

IE Conditional commens


  • Please log in to reply
1 reply to this topic

#1 antpower26

antpower26

    Member

  • Member
  • PipPip
  • 27 posts

Posted 04 August 2011 - 10:25 AM

Hi All I am just trying to write IE conditional comments for IE 6/7, the code is working as in both browsers the specific stylesheet
coded fixes the various problems with the CSS. However the problem I have that some of the conditional comment is appearing in the top left of the browser only in IE. The code I am using is:

<!--[if (IE6) (IE7)]><link rel="stylesheet" type"text/css" href="IE6.css><![endif]-->

The code appearing is before and after the stylesheet code.

Any help appreciated.
Ant
  • 0

#2 Ben

Ben

    Administrator

  • Administrators
  • 5,655 posts
  • LocationChico, CA

Posted 04 August 2011 - 10:41 AM

That doesn't look like the valid syntax for conditional comments -- specifically this section: <!--[if (IE6) (IE7)]>. I'd suggest looking at that first.

See http://www.quirksmod...ss/condcom.html
  • 0
Benjamin Falk
Falken Creative : Twitter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users