2 Replies - 628 Views - Last Post: 14 September 2012 - 11:19 AM

#1 el_pancho  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 88
  • Joined: 26-April 12

<!--[if IE]> how should i use it?

Posted 14 September 2012 - 10:37 AM

hi guys,

i have a few issues with an IE7 website, so i tried to add these lines of code to my index file, just to load a specific CSS file when the user is visiting the site through IE7 or lower.

<!-- [if lt IE 8]>
<link rel="stylesheet" type="text/css" href="ie7l.css" />
<![endif]-->


but my page browser does not load the file when i use ie7.
Is This A Good Question/Topic? 0
  • +

Replies To: <!--[if IE]> how should i use it?

#2 Utael  Icon User is offline

  • D.I.C Head

Reputation: 55
  • View blog
  • Posts: 210
  • Joined: 12-December 11

Re: <!--[if IE]> how should i use it?

Posted 14 September 2012 - 10:40 AM

Look up comments on html 5 on w3c

Edit: Tapatalk does horrible things with code tags...

This post has been edited by Utael: 14 September 2012 - 11:29 AM

Was This Post Helpful? 0
  • +
  • -

#3 StefanOnRails  Icon User is offline

  • D.I.C Head

Reputation: 35
  • View blog
  • Posts: 106
  • Joined: 31-July 12

Re: <!--[if IE]> how should i use it?

Posted 14 September 2012 - 11:19 AM

<!--[if lt IE 8]>
   <link rel="stylesheet" type="text/css" href="ie7l.css" />
<![endif]-->


No spaces between "-" and "["
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1