Re: Unlogical width with percentages

>    <div style="float: right; width: 50%">
>       <div style="margin: 2em; border: solid 2em; padding: 2em;">
>       </div>
>    </div>
>
> ...has the same effect as:
>
>    <div style="width: 50%; float: right; box-sizing: margin-box;
>                margin: 2em; border: solid 2em; padding: 2em;">
>    </div>
>
> ...so limiting 'box-sizing' is not really a blocker.
No, on the contrairy, the first example is clear, while you need to think
twice for the second one.

Sjoerd Visscher

Received on Sunday, 10 October 1999 17:18:39 UTC