W3C home > Mailing lists > Public > www-style@w3.org > May 2004

box-sizing. Was Re: where is overflow:none ?

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 18 May 2004 08:40:13 -0700
Message-ID: <002401c43cee$696890c0$0301a8c0@ATHLON>
To: Tantek Çelik <tantek@cs.stanford.edu>, <ernestcline@mindspring.com>, <www-style@w3.org>

> Correction:
>
> [1] <http://www.w3.org/TR/2004/CR-css3-ui-20040511/#box-sizing>
>
> Tantek

By the way:

As far as I understand the main reason of box-sizing mode introduction
was to support layouts like in example section of the link above.

Using %% units (or "spring" model) this could be achieved without need to
use box-sizing and floating(!).

div.container {
	width:38em;
	border:1em solid black;
}

div.split {
display: inline-block;
width: 50%%;
	border:1em silver ridge;
}

sample (X)HTML fragment:
<div class="container">
<div class="split">This div occupies the left half.</div>
<div class="split">This div occupies the right half.</div>
</div>Result will be exactly the same.Andrew
Fedoniuk.http://terrainformatica.com
Received on Tuesday, 18 May 2004 11:40:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:30 GMT