SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Jun 2003
    Location
    Barrie, Ontario, Canada
    Posts
    316
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    validate css with min-height ie hack?

    Hello all,

    I'm sure this queston has been asked before, but I searched and couldn't find it.

    For my site, I chose to use a min-height for IE hack. The hack is as follows:

    Code:
    #portfoliotop {
    min-height:200px;
    }
    
    *html #portfoliotop { height:200px; }
    It works fine, however it will not validate with the W3C.

    The error I get is:

    Code:
    Line: 0 Context : *
    
    Parse Error - *html #portfoliotop { height:200px; }
    Does anyone know a way around this? How I can use a min-height for IE hack, and still vaildate my site's css?

    Thanks in advance.

  2. #2
    Forums Designer
    Join Date
    Jun 2004
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put spacing between * and html

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Yes there must be white space after the universal selector. You don't join othere selectors together without spaces do you

    e.g. divp instead of div p

    So give the universal selector the same courtesy

  4. #4
    SitePoint Addict
    Join Date
    Jun 2003
    Location
    Barrie, Ontario, Canada
    Posts
    316
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    of course. thanks for the help.


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
  •