Closed
Bug 308346
Opened 19 years ago
Closed 19 years ago
css div style clear:both not clearing floats
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: geuis.teses, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 On the example page http://blog.thetechgurus.net/index2.html 2 <div> blocks are floated left together. They are followed by a <div style="clear:both"></div> which is followed by another <div> block. All blocks in question have background images. When at 0 height, the <div style="clear:both"></div> does not clear the floats. By making the div with the clear:both 1px high, it does clear the floats. By adding clear:both to the css class 'reddivider' it does clear the float properly also. Reproducible: Always Steps to Reproduce: 1. problem originally noticed when css was in a separate include stylesheet 2. placed all css styling in the same file, reduced to minimum number of <div> blocks. 3. same problem existed. Actual Results: <div style="clear:both"></div> still not clearing floats. Expected Results: <div style="clear:both"></div> should clear the floats without needing a minimum height. Having to add a minimum height potentially breaks the flow of a webpage designed to have multiple div blocks stacking on top of each other, for example.
Comment 1•19 years ago
|
||
WFM Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050913 Firefox/1.6a1 ID:2005091308 The build this bug is reported against is too old. Please recheck using a recent nightly build[1,2] to verify that the behavior still exists and post the results here. Also, please supply your testcase as an attachment to help others verify this behavior. Thanks. [1] ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla1.8/ [2] ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk
| Reporter | ||
Comment 2•19 years ago
|
||
Was using 1.0.6 before and it had this bug. Updated to the latest nightly build and the bug has been corrected.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 3•19 years ago
|
||
Please use FIXED only if you can trace this to a specific commit by a developer. For more info see: http://www.mozilla.org/quality/help/bugzilla-privilege-guide.html#resolving
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Updated•19 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•