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

CSS3 - box model padding

From: Gareth Evans <garethevans@runbox.com>
Date: Wed, 23 Aug 2006 21:35:32 +0100 (GMT/BST)
To: www-style@w3.org
Message-Id: <E1GFzRk-00040Q-KI@fenris.runbox.com>


Please could anyone working on the CSS3 specification confirm if there are plans to change the box model for padding?

Alternatively, does anyone support the following and, if so, can anyone suggest how to request such things from W3.org?

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].

I understand that the margin attribute is also applied externally - this makes sense to me - but if padding is _added_ to element width, it seems the only way to achieve cellpadding-like effects with a div, for example, is to use a div-within-a-div... which seems unnecessary if the CSS specification were to support padding internally, which would seem to fit with the concept of padding as in the original "padded cell".

There is some mention of the possibility that CSS3 might provide an "option" for how padding should be applied at:

Could anyone confirm if this is, currently, an intention?  Would anyone support it?

And, finally, does anyone know of a method to produce cellpadding-like gaps inside a div without using the "box in a box" approach?

With thanks,
Received on Wednesday, 23 August 2006 21:43:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:25 UTC