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%">

</div>
<p>
</p>

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

> 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.
</q>

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.
http://im.yahoo.com
Received on Monday, 28 February 2000 07:54:38 GMT

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