- From: Matthew Brealey <thelawnet@yahoo.com>
- Date: Fri, 3 Mar 2000 16:44:53 -0800 (PST)
- To: www-style@w3.org
--- fantasai <fantasai@escape.com> wrote: > | 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? @__@ E.g., <div style="float: left; width: 40%"> Content in a DIV that will be 40% wide. </div> <p> P will wrap around the DIV. P will wrap around the DIV. </p> Thus: Content in a DIV P will wrap around that will be 40% the DIV. P will wrap wide. around the DIV. P will wrap around the DIV. > | > 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'. > > 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. It does actually say that elsewhere (at 17.4): <q> In terms of the visual formatting model, a table may behave like a block-level or replaced inline-level element. </q> But the point is that it behaves as replaced because the effect of the table algorithms is that; in addition, to treat it as non-replaced implies certain things in terms of the way that its margins are calculated. I hadn't actually noticed the 17.4 quote when I wrote this; this (that one might not notice everything) is inevitable when the spec gets as large as CSS2. ===== ---------------------------------------------------------- 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 Friday, 3 March 2000 19:45:00 UTC