W3C home > Mailing lists > Public > www-style@w3.org > March 1998

Re: Block Boxes

From: Russell Steven Shawn O'Connor <roconnor@wronski.math.uwaterloo.ca>
Date: Mon, 9 Mar 1998 14:10:28 -0500 (EST)
To: "'Style Sheet mailing list'" <www-style@w3.org>
Message-ID: <Pine.SOL.3.95q.980309135452.5307B-100000@wronski.math.uwaterloo.ca>
On Mon, 9 Mar 1998, Bert Bos wrote:

> But to describe what happens in this case, we introduced the notion of
> "anonymous boxes" (boxes that don't correspond to any named element):
> since the outer DIV in your example appears to have both inline and
> block-level content, the inline content is considered to be wrapped in
> an "anonymous" block-level box.
> 
> So now the outer DIV indeed contains only block-level boxes, and the
> inner DIV contains only inline boxes.

How does this fit in with your example of float in
<URL:http://www.w3.org/TR/WD-CSS2/visuren.html#floats>

  <HTML>
  <HEAD>
  <STYLE type="text/css">
    IMG { float: left }
    BODY, P, IMG { margin: 2em }
  </STYLE>
  </HEAD>
  <BODY>
    <P>
      <IMG src=img.gif alt="This image will illustrate floats">
      Some sample text that has no other...
  </BODY>
  </HTML>

In this case the IMG is floating and hence becomes a block element. So now
the P element contains both block and inline elements.  So the inline text
is wrapped in an anonymous block element.  Now I'm assuming the anonymous
block contains all of the inline text. So this text should then be
rendered in a box.  However your diagram imediately following it has the
inline text flowing all over the place. 

Is my mistake in assuming the anonymous block element contains all of the
inline text?  Does each line of text get its own anonymous block?

-- 
Russell O'Connor                           roconnor@uwaterloo.ca
    <URL:http://www.undergrad.math.uwaterloo.ca/%7Eroconnor/>
"And truth irreversibly destroys the meaning of its own message"
-- Anindita Dutta, "The Paradox of Truth, the Truth of Entropy"
Received on Monday, 9 March 1998 14:10:31 GMT

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