Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc3.3.1 OS: Linux All divs are placed in one line, not two rows as should be. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="pl"> <head> <title>Testcase</title> </head> <body> <div> <div style="float:left"> Div left </div> <div style="float:right"> Div right </div> </div> <div> Regular div </div> </body> </html> CVS from 24.07
Created attachment 6925 [details] testcase testcase
I'm not sure what you're seeing, but I see it rendered exactly as it's supposed to be: one floating left, one floating right and one in the middle: all in one row.
> I'm not sure what you're seeing, but I see it rendered exactly as it's > supposed to be: one floating left, one floating right and one in the > middle: all in one row. What????? You have <div> <div left/> <div right/> </div> <div /> float left and right are enclosed in another div, container, whatever. Why last div is supposed to jump _into_ already closed div??? m.
because there is no non-floating content?
Make it: <div style="clear: both"> Regular div </div> And just noting that Konqueror displays the exact same way as Mozilla. This is the desired behaviour.
OK Still for me it is against common sense for div to jump into inside the same level another div...
The point is, the first div contains two elements, both of which are floats. So there is space in the middle for more stuff to be placed. I think that, by adding a inside the first div but outside the sub-divs, you'd get what you want, because that would create a third, anonymous box.