SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cross browser CSS

    I'm trying to get seperate style sheets to work for IE6, IE7 and IE8. Is my <head> code correct?
    Code:
    <!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <![endif]-->
    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="IE8.css" />
    <![endif]-->
    
    <link rel="stylesheet" type="text/css" href="style2.css" />
    Regards Drew

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The normal stylesheet should be declared before the IE ones, as you will want the IE styles to override the normal ones where needed. I would hardly think you would need separate stylesheets for IE7 and 8 though...

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, thats it thanks, the design differs slightly between those two browsers would you believe, as usual a little thing causes alot of headaches, quick response, Cheers.
    Regards Drew


Bookmarks

Posting Permissions

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