|
Posted by Jonathan N. Little on 06/14/06 02:12
fred.haab@gmail.com wrote:
> Wÿrm wrote:
>> <fred.haab@gmail.com> kirjoitti
>> viestissä:1150218077.801589.251210@u72g2000cwu.googlegroups.com...
>>
>> <snip>
>>
>>> Actually, I disagree. In all my searching online,
>> There is no need to search that much. Read the w3 specs, they tell what
>> should happen.
>>
>>
>>> I've found that this
>>> behavior is known and expected, but is not defined or "supposed" to be
>>> that way.
>> I suggest you should spend some time and read
>> http://www.w3.org/TR/CSS21/visuren.html#floats and how float is moved from
>> the normal flow.
>>
>> "Since a float is not in the flow, non-positioned block boxes created before
>> and after the float box flow vertically as if the float didn't exist.
>> However, line boxes created next to the float are shortened to make room for
>> margin box of the float."
>
> I still don't agree that this explains it away, though. The containing
> div was created before, it's true, but it's a parent container, not
> simply just another container that was created before the floated
> container.
>
> In other words, give this:
>
> <div>
> </div>
> <div class="right">
> </div>
>
> The text makes perfect sense, but in this case:
>
> <div><div class="right"></div></div>
And if DIV class right has content then make is larger than the base of
the containing DIV is SHOULD extend beyond the base of out DIV. The out
DIV is not supposed to expand to accommodate a floating element.
>
> The outer div is the parent, not simply some other box that was created
> before or after.
>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|