W3C home > Mailing lists > Public > www-style@w3.org > August 2006

Re: CSS3 - box model padding

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Thu, 24 Aug 2006 12:08:54 +0200
Message-ID: <44ED7AB6.3080005@students.cs.uu.nl>
To: Gareth Evans <garethevans@runbox.com>
Cc: www-style@w3.org
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 GMT

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