Closed
Bug 707
Opened 27 years ago
Closed 26 years ago
CSS clear attribute not working
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: unapersson, Assigned: buster)
References
()
Details
Clear attribute does not move text past floated HTML elements,
i.e. div. As an example the following simple HTML fragment
with two floated divs:
<div style="float: left; width: 50%; color: #000000; background:
#c0c0c0;"><p>Left</p></div>
<div style="float: right; width: 50%; color: #ffffff; background:
#000000;"><p>Right</p></div>
<p style="clear: both; text-align: center;">New Line of Text</p>
Updated•27 years ago
|
Assignee: peterl → troy
Comment 1•27 years ago
|
||
Looks like the clear attribute is getting into the style context. Layout seems
to be ignoring it.
Comment 2•26 years ago
|
||
A further example is
http://www.w3.org/Style/CSS/Test/current/sec5526.htm
However, in this page, there seems to be some interesting behavior in that the
paragraph that doesn't have clear is moved up.‰
You need to log in
before you can comment on or make changes to this bug.
Description
•