Sent by Adam Kuehn on 9 April 2003 18:06
Francois Jordaan wrote:
>I think there's a mistake on this otherwise excellent resource, penned (I
>believe) by Simon Willison:
>http://css-discuss.incutio.com/?page=BoxModelHack
>
>The last sentence seems to be wrong regarding "height". Surely...
>\height: 140px;
>h\eight: 100px;
>...is invalid because \e will be seen as hex code?
The key is whether or not the *first* letter can be escaped. If it
can, IE 5.x Win can see the rule. The second escape can occur
anywhere in the attribute, and doesn't need to be in the second
position. If any letter *other than the first* is escaped, IE 5.x
ignores the rule. Therefore, for the purposes of this hack, he\ight
is a perfectly good second attribute declaration, as good browsers
will see it and IE won't.
Wouldn't hurt to edit the page to make that part clearer, I suppose,
but the page is correct.
--
-Adam Kuehn
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/