[thelist] Out of the box

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Sep 10 09:50:00 CDT 2002


> > >IMO, all these declarations would be useful:
> > >
> > >box-sizing: margin-box;
> > >box-sizing: border-box;
> > >box-sizing: padding-box;
> > >box-sizing: content-box;
> >
> > How would margin-box work? I thought about it while making my test
>case and
> > couldn't figure out how the margin-box would have to work.
>
>Well, you just never know! Suppose I want 4 equal fluid boxes
>side-by-side with absolutely sized margins, borders and padding -
>pixel-perfect fluid layouts, if you will.
>
>#abox {
>float:left;
>margin:5px;
>border:1px solid #000;
>padding:5px;
>width:25%;
>box-sizing:margin-box;
>}

In my opinion 'pixel-perfect' is the opposite of 'fluid', and fluid design
far more desirable, so I'd never do that! <g>

But I see your point, margin-box might be useful. Let's hope anyone adds
support for them.

ppk

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




More information about the thelist mailing list