Re: Shrinkwrap, Floats, and Tables

Matthew Brealey wrote:

 | > Currently it is possible to get a shrink-wrap effect with
 | > one-celled tables.
 | You should use floats.

A float! Where did that come from?

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

I'm sorry, but I have no idea what you're trying to do here. Is the
<div> empty? Or the <p>? Or something else altogether? @__@

 | > 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="">
 | 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'.

Why would a table be regarded as block-level replaced? It's not
replaced. I think the spec here is fine the way it is.

Received on Friday, 3 March 2000 17:05:52 UTC