SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    pa
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    *html * html question

    Is it just me or does * html not work. I find that it doesn't work and I have to use *html (with no space). But it doesn't validate that way. Anyone else experience this, or is it just me?

    thanks

  2. #2
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What are you using this for?

    The only user agent which recognizes * html is Internet Explorer. IE thinks that there is some magical wrapper around html and thus * html actually means something to IE.

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    pa
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using it to specify css for only IE...

    but like I said earlier,
    if I put a space between * html it doesn't seem to work, but if I leave the space out *html...it seems to work...maybe I am confused. I try so many things sometimes that I do tend to get confused...so * html (with the space) works for you?

  4. #4
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, the "star html hack" as it's known works only when there is a space between the * and html.

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,526
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    if I put a space between * html it doesn't seem to work, but if I leave the space out *html...it seems to work...maybe I am confused. I try so many things sometimes that I do tend to get confused...so * html (with the space) works for you?
    As far as my tests have shown star html works with a space and without a space (in ie6). However its only validates with a space and thats the way you should use it
    Code:
    * html
    I have found this hack to be the safest of all hacks and recommend it above others as it supplies ie the values it needs without bothering good browsers.

    If you have an instance where it doesn't work then its probably an error in your coding at some other stage. If you have an example then we can have a look see

    Paul


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
  •