Ulrich Wiederhold wrote: > Hello, Hi :-)
> in a stylesheet I found: > > width: 158px; > \width: 160px; > w\idth: 158px; > > For which browsers are these different hacks? The first line is setting the desired width for all browsers. The second line sets a different width for WinIE and MacIE (although I've never seen that hack, I think it acts the same as the underscore hack: _property:value;) The third line sets the desired width back for WinIE6 and MacIE5, but not WinIE5. The result is that all browsers apply a width of 158px, while WinIE5 applies 160px. > and why? Because IE5 doesn't add the borders after applying the width, but includes them in the width. IE6 wouldn't either if it's in quirks mode, so these stylerules only make sense in standards mode. >From the above mentioned style rules, I deduct that the element in question probably has a left and right border of 1px. > Thanks. You're welcome :-) -- Els ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
