Re: CSS3 - box model padding

Gareth Evans schreef:
> My understanding is that padding is currently applied externally to content (except in table cells) so that, for example...
>
> <div style="padding:20%;width:100%">some content</div>
>
> would give a width of 140% [100% + 20% either side].

Gareth,

The solution is very simple: don’t use width: 100% but width: auto.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.

Received on Thursday, 24 August 2006 10:09:09 UTC