[thelist] Out of the box

lon.kraemer lwkraemer at directvinternet.com
Tue Sep 10 09:44:01 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;
}

--
Lon Kraemer
-----------------------------------------




More information about the thelist mailing list