SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict Mr Jojo's Avatar
    Join Date
    May 2007
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Hide CSS from Firefox, IE readonly] IE7, if devil exists, then IE is it...

    IE 6 know the tag *html .blablabla {...}
    but IE7 doesn't, once more M$ could deprecate his browser from 6 to 7

    How can i make a CSS tag that will only be read by IE 6/7?

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2007
    Location
    Toronto
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use conditional comments to display a different CSS file/styles, like this:

    Code:
    <!--[if gte IE 6 ]>
     <p>Only  IE 6 and greater will see this</p>
    <![endif]-->
    Keep in mind this will also be seen by all future versions of IE, so you might want to use something more specific. See conditional comments explained here.

    Louis
    Last edited by Louis Lazaris; Aug 11, 2008 at 09:16. Reason: added note

  3. #3
    SitePoint Addict Mr Jojo's Avatar
    Join Date
    May 2007
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Louistar View Post
    Use conditional comments to display a different CSS file/styles, like this:

    Code:
    <!--[if gte IE 6 ]>
     <p>Only  IE 6 and greater will see this</p>
    <![endif]-->
    Louis
    CSS code cant be commented that way, or can it?

    <style>
    <!--[if gte IE 6 ]>
    p {color:blue;}
    <![endif]-->
    </style>


    Will this work?

    What is the gte?

  4. #4
    SitePoint Zealot
    Join Date
    Aug 2007
    Location
    Toronto
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See the note I added to my original reply.

    Louis


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
  •