- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Tue, 18 May 2004 08:40:13 -0700
- 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 UTC