Previous Message
Next Message

Re: [css-d] Opera 6/Linux strange float behavior

Sent by Kevin W on 28 December 2002 12:12


On Saturday, James Bennett wrote:
> I'm seeing some interesting behavior in Opera 6 under Linux on a couple 
> of pages

Same thing happens on Opera 5, 6 and 7b2 on Windows.

> I think the "clear: both" on the formRow class is causing the problem; 
> Opera is reading that and placing the
> form elements below every other floated element on the page.

Yes.  Using clear:left or removing it completely seems to make it display 
how you want it (in Opera 7, at least).

> Mozilla behavior makes more sense and is what I intuitively expect, but 
> Opera's
> behavior seems to follow to the letter the definition of "clear: both" 
> ("The
> generated box is moved below all floating boxes of earlier elements in 
> the source document").  Which one is correct?

Opera is correct.  The specification is fairly clear that the box appears 
below *any* earlier floating elements, not excluding those that aren't 
siblings.

-- 
Kevin W :-)
Previous Message
Next Message

Message thread: