Possible new CSS hack

This is possibly a new CSS hack, and possibly an old CSS hack, and possibly me just being dim. I haven’t got time to test it, you see.

It seems that if you prefix a CSS declaration with a hash, IE6/Win2K ignores the hash, and Phoenix0.5/Win2K ignores the declaration. Something like:


#myheader {
    position: absolute;
    top: 0; left; 0; right: 0;
    #width: 50px;
}

IE6/Win2K will obey the width declaration, and Phoenix 0.5/Win2K will not. I’ll test more stuff when I get a chance.

One Response to “Possible new CSS hack”

  1. FWIW, the CSS spec mandates that declarations containing unknown/invalid property names be ignored, so IE is the broken browser here:http://www.w3.org/TR/REC-CSS2/syndata.html#parsing-errors

    kevin c smith

Leave a Reply