Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Internet Explorer conditional comments

    hey guys, im trying to use conditional comments so if someone has an IE browser, the website will use a stylesheet im making specifically for it. I have the code as follows but it doesn't seem to want to work. Do I need to add anything to it?
    Code:
    <!--[if IE 7]><href="styles/main_ie.css" rel="stylesheet" type="text/css" /><![endif]-->
    Last edited by qhx398; 12-19-2009 at 05:52 AM.

  • #2
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    Code:
    <href="styles/main_ie.css" rel="stylesheet" type="text/css" />
    should be

    Code:
    <link href="styles/main_ie.css" rel="stylesheet" type="text/css" />
    vineet

  • Users who have thanked vineet for this post:

    qhx398 (12-19-2009)

  • #3
    New Coder
    Join Date
    Dec 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    doh, how did I miss that. I must be tired thanks vineet!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •