Closed
Bug 263253
Opened 20 years ago
Closed 20 years ago
CSS alignment is ignored for hr tag
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 226454
People
(Reporter: mail, Assigned: dbaron)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a5) Gecko/20041006 MultiZilla/1.6.2.0c Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a5) Gecko/20041006 MultiZilla/1.6.2.0c The example page is validated HTML 4.01 strict. The style "text-align:left" is specified both for the hr tag and the containing div, but Mozilla 1.7.3 ignores it. When the alignment is done via align attribute, it is honored; but this won't validate. Apparently there is no way with Mozilla to have a left-aligned hr with "strict" validated code. Verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a5) Gecko/20041006 MultiZilla/1.6.2.0c Reproducible: Always Steps to Reproduce: (visit the above example) Actual Results: the hr is (by default) aligned centered Expected Results: if should be aligned left, like specified in the stylesheet
Comment 1•20 years ago
|
||
http://www.w3.org/TR/REC-CSS1#text-align This property describes how /text/ is aligned /within/ the element. You can align hr elements with margins, like any other block, so in this case you're looking for #validators hr { margin-left: 0; } *** This bug has been marked as a duplicate of 226454 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•