[thelist] Out of the box

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Sep 10 10:19:01 CDT 2002


>>box-sizing: margin-box;
>>box-sizing: border-box;
>>box-sizing: padding-box;
>>box-sizing: content-box;
>
>Should these be introduced in CSS3 then I will be happy to look at
>useful ways to use different box models in browsers which support
>them.
>Using the (albeit interesting) techniques ppk outlined at the start
>of this thread *at the moment* would be a bad thing.

I don't quite agree, though I see your point.

>There are three different work-arounds needed to switch different browsers:
>IE6 (xml prologue or invalid dtd)
>Mozilla (-moz-box-sizing)
>IE5 Mac (box-sizing)
>to use the currently non-standard box model. My point is that if you
>use this technique *now* you are using a technique which will cause
>your design to fail in some standards compliant browsers.

Opera would be the only victim. And I suspect Opera 7 will support
box-sizing (just a hunch, but the declaration is too useful to leave out).

Besides, when using the W3C model Explorer 5 Windows is a victim, unless you
add other hacks. So whichever way you turn it, Explorer on Windows is the
largest single obstacle to a comprehensive box model.

For the trick to avoid this kind of incompatibilities, see my next column at
Digital web (http://www.digital-web.com/columns/keepitsimple/). It'll run in
two weeks, but I won't give away the clue right now...

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com




More information about the thelist mailing list