Bug 70930 - clear: both does not clear correctly
Summary: clear: both does not clear correctly
Status: RESOLVED DUPLICATE of bug 68068
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-20 19:12 UTC by David Cornish
Modified: 2004-01-25 17:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cornish 2003-12-20 19:12:40 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    RedHat RPMs

There appears to be a CSS rendering problem with cleared 'div's.  An example of my problem is available at : http://www.kenyahome.com/test2.php.  From the source of this page,

<div style="float:left; clear:both; margin: 10px;">
  <img src="images/child1.jpg" alt="Child" />
</div>
<div style="margin: 10px; float:right; clear:both">
  <img src="images/child1.jpg" alt="Child" />
</div>

the second image should appear below and not on the same level as the first, 
due to the "clear:both" in the style tag of the second division.  However, 
this is not observed.  Rather both images are displayed at the same 
horizontal position.  The correct behaviour is observed with the Opera and 
Mozilla web browsers.
Comment 1 Marcus Williams 2004-01-07 18:33:42 UTC
This is a nasty regression (and maybe a duplicate of bug #68068?). If clear doesnt work an awful lot of sites using floated layouts will break.
Comment 2 Stephan Kulow 2004-01-25 17:27:56 UTC

*** This bug has been marked as a duplicate of 68068 ***