[...]
If you go with the strict CSS 2.1 way, you place the float top level with the top of the text - but the last word wraps now! Thus, buy rule 6 of CSS 2.1, the float must be moved down so it's top matches the top of the new 2nd line of text. But now the last word can fit on the fits line again. Welcome to the wonderful world of recursion. ;)
Firstly, the only solution to this is to wrap even though the word does actually fit on the line.
[...]
I'm not sure I quite understand you. I've added one more paragraph of text:
<p> If you go with the strict CSS 2.1 way, you place the float top level with the top of the text - but the last word wraps now! Thus, buy <span class="right">right</span> rule 6 of CSS 2.1, the float must be moved down so it's top matches the top of the new 2nd line of text. But now the last word can fit on the fits line again. Welcome to the wonderful world of recursion. ;)</p>
The float is after the words "Thus, buy", so here what I see with Opera:
http://www.geocities.com/stanio/temp/opera-float-01.png http://www.geocities.com/stanio/temp/opera-float-02.png
I don't see a need of recursion. If there's no room for the float on the line of the just preceding line-box it is shifted down and there may appear words above the float which are after it in the source. This doesn't break any rules, or I'm missing something?
Probably all you want is how to make this work - well that's easy enough, just make sure you put all the floating items before the normal text.
Actually I'm puzzled with this issue since long time now and there were many times I wished I could rely on a proper floats behavior, because the floats until (including) CSS2 are the only mechanism where you could position an element and it would still affect the normal flow (the general layout).
The absolute positioning in most of the cases is not a good solution nor the various CSS2 implementations are very inconsistent, though Mozilla is the best currently.
The only solution I've found is to put all the floating items "in front" just like you say. Unfortunately this breaks the document structure and the element logical order.
--
Replace "domain.invalid" with "gbg.bg" to reply. _==_ _
_,(",)|_|
"Someone who thinks logically provides a nice \/. \-|
contrast to the real world." __( : )|_ hjw_______________________________________________ Mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
