W3C home > Mailing lists > Public > www-style@w3.org > June 2005

Re: RE Bounding box

From: David Woolley <david@djwhome.demon.co.uk>
Date: Mon, 6 Jun 2005 22:25:01 +0100 (BST)
Message-Id: <200506062125.j56LP1N01682@djwhome.demon.co.uk>
To: www-style@w3.org

> I have read that the width and height of an object does not include the
> padding and border. If I am wrong then please cease reading.

You can easily confirm this from the source document:


> I really really really think that the width or height of an object
> should include the padding , at least.

Very few people use padding.  In general, one wants the content
size for images, not anything larger, and that's the only place
you should be using precise sizes.

> If an item should be 100% (PERCENT) wide but the padding on the right
> side should always be 200px (PIXELS) ... ??? Tell how can this be done?

How to do this for width should be fairly obvious from
<http://www.w3.org/TR/CSS21/visudet.html#blockwidth>.  Ask me off list,
with a valid email reply address, if you want details.  In most contexts
there is no containing height.

Having an option to make width the overall width has been raised in
the past.  The other proposal that has been made is to allow simple
expressions with mixed units (but many consider that is the thin end of
the wedge towards scripting).
Received on Monday, 6 June 2005 21:25:07 UTC

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