W3C home > Mailing lists > Public > www-style@w3.org > February 2000

Re: Shrinkwrap

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Mon, 28 Feb 2000 04:54:37 -0800 (PST)
Message-ID: <20000228125437.11817.qmail@web903.mail.yahoo.com>
To: www-style@w3.org
"fantasai" wrote:
> Currently it is possible to get a shrink-wrap effect with one-celled
> tables.
You should use floats.

An example of filling the available space would be:

<div style="float: left; width: 40%">


That would cause the P to wrap around the float, apparently filling the

> But this is incorrect use of tables, and the browser's table
> layout is contrary to the CSS2 spec (unless, perchance, tables are
> regarded as replaced elements?).

<q cite="http://www.w3.org/TR/REC-CSS2/tables.html#q5">
In terms of the visual formatting model, a table may behave like a
block-level or replaced inline-level element.

This statement is slightly inaccurate.  It doesn't define what it behaves
like as block-level; correct would be 'a table will behave like a
block-level replaced or inline-level replaced element'.

From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
Received on Monday, 28 February 2000 07:54:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:53 UTC