- From: Matthew Brealey <thelawnet@yahoo.com>
- Date: Mon, 28 Feb 2000 04:54:37 -0800 (PST)
- 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 UTC