>>>> http://bsb.me.uk/tmp/bug.html
> <snip>
[quoted text clipped - 8 lines]
> Yes but that, of course, does not position that image in the same
> place, and requires extra markup to make a valid page.
*one* extra div - I personally wouldn't worry about that.
>> What is happening in the above example, is that the first paragraph
>> gets extended to encompass the float inside, because of the set
[quoted text clipped - 5 lines]
> Ah. I am still confused but I can see the fog much more clearly!
> Elements with "layout" auto clear in IE, it seems.
I suppose you could call it that (auto clear), but it is more than
that - layout makes the element rectangular with 'closed borders' -
keeping floats inside instead of sticking out.
> Sadly, most people
> seem to need hacks to give an element layout rather than prevent one
> from gaining it.
Yup. BTW, to get what I think you want, you would need to also use
that one extra div to set the max-width on (as Berg suggested), as the
paragraphs would still have layout if you set the max-width on them,
meaning that if a paragraph is taller than the floated image, it will
not wrap below the image, but remain one rectangular block, with the
image beside it.
Only the next paragraph would go wider, below the image.

Signature
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Ben Bacarisse - 31 Mar 2007 12:42 GMT
>>>>> http://bsb.me.uk/tmp/bug.html
>> <snip>
[quoted text clipped - 10 lines]
>
> *one* extra div - I personally wouldn't worry about that.
No, neither would I. It is moving the image outside of the <p>'s
margins that might be an issue. I need to check the details in the
real design.
>>> What is happening in the above example, is that the first paragraph
>>> gets extended to encompass the float inside, because of the set
[quoted text clipped - 9 lines]
> that - layout makes the element rectangular with 'closed borders' -
> keeping floats inside instead of sticking out.
I was just borrowing the term from the URL your posted. Does this
"non-intersecting rectangles behaviour" have an agreed name?
>> Sadly, most people
>> seem to need hacks to give an element layout rather than prevent one
>> from gaining it.
>
> Yup. BTW, to get what I think you want, you would need to also use
> that one extra div to set the max-width on (as Berg suggested),
Yes indeed. And the real-world layout from which this is drawn already
has the extra div so it is just a case of seeing which one of (a)
moving the max-width or (b) moving the <img>s is simpler and/or less
disruptive to the overall layout.

Signature
Ben.
Els - 31 Mar 2007 12:53 GMT
[max-width triggers hasLayout in IE7]
>>>> http://www.satzansatz.de/cssd/onhavinglayout.html
>>>
[quoted text clipped - 6 lines]
>
> I was just borrowing the term from the URL your posted.
Ah, missed that :-)
> Does this "non-intersecting rectangles behaviour" have an agreed name?
Other than 'hasLayout' (which doesn't mean much to many people), I
don't know really. But we could of course agree on "non-intersecting
rectangles behaviour" if no one can come up with a shorter term :-)
> And the real-world layout from which this is drawn already
> has the extra div so it is just a case of seeing which one of (a)
> moving the max-width or (b) moving the <img>s is simpler and/or less
> disruptive to the overall layout.
Yup - each design needs its own solutions to common problems.

Signature
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/