Re: Float overflowing behavior

On Wed, 14 Aug 2002, Coises wrote:
>
> Suppose I have a document like this (view in fixed pitch):
> 
>                     The document consists of text which line-wraps and is
>  +---------------+  organized normally in paragraphs; but it contains a
>  |term: a word   |  *term* that is to be explained further in the left 
>  |we need to     |  margin.  Now, the whole idea of this kind of layout
>  |explain        |  is that the needed reference (it could be a picture,
>  +---------------+  a definition, any sort of thing) is right at hand
>                     near the text, without actually breaking up the text.
>                     To work --- since we don't know just where the text
>                     will wrap --- the reference material must be included
>  +---------------+  in the source text right after the word or phrase
>  |boldface: a    |  (shown here in *boldface*) to allow for the correct
>  |dark or thick  |  vertical alignment(in this example, the baseline of
>  |type style     |  the first line box of the sidebar data is aligned with
>  +---------------+  the line box that contains the word or phrase with
>                     which it is the reference data is associated).
> 
>                     While the above examples are contained in the margin,
>  +-------------------------+ there might also be another reference to a
>  |*************************| *picture*; which might be wider than the
>  |*************************| margins, so that the text would have to flow 
>  |*************************| around it.  None of this is particularly 
>  +-------------------------+ unusual layout; and --- at least to me ---
>                     it seems very much like the concept of a "float";
>                     yet, as far as I can tell, neither the float model,
>                     nor anything else in CSS, could be used in an intuitive
>                     way to generate this presentation.

You can do all of that with CSS2:

   http://www.damowmow.com/mozilla/demos/sidebars/demo.html

-- 
Ian Hickson                                     )\     _. - ._.)       fL
                                               /. `- '  (  `--'
                                               `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________

Received on Wednesday, 14 August 2002 22:39:59 UTC