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 to the CF scene
    Join Date
    Oct 2010
    Posts
    1
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Different CSS for Different Browsers

    Awhile back (four years ago, actually), there was a thread about customizing CSS for different browsers. There was a post in it that went like this:
    IE provides a way to do it in HTML, no scripting of any sort required.


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

    Does this work in newer versions of IE, like 7 and 8? Because it doesn't seem to be working for me. And is there a better way to do this?

    Thanks,
    Steve

  • #2
    New Coder
    Join Date
    Oct 2010
    Posts
    15
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Yes they do. IE 9 will also support them. Read more on them here

    i use this method by Paul Irish. It removes the need for an additional HTTP request.

  • Users who have thanked ilikesemantics for this post:

    st0smith (10-22-2010)

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    851
    Thanks
    11
    Thanked 79 Times in 77 Posts
    The IE Conditional Comments should be placed as the last of the CSS links and any CSS style tags you may have on the page. If not, the last CSS accessed is used.

    Right now, I have seen no need for the Conditional Comments for IE 9 Beta. 7/8 still have bugs so they need to have their own IE only styling.

    The solution offered is valid in some cases, but it is 4 years old.
    ☠ ☠RON☠ ☠

  • Users who have thanked Major Payne for this post:

    st0smith (10-22-2010)


  •  

    Posting Permissions

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