Closed Bug 63434 Opened 25 years ago Closed 22 years ago

<HR> has extra whitespace above and below besides margins and padding.

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
mozilla1.0.1

People

(Reporter: LlelanD, Assigned: ian)

References

()

Details

(Keywords: testcase, Whiteboard: [Hixie-P4] [fix in hand] fixed with bug 38370)

Attachments

(1 file)

If you eliminate all margins and padding and give an HR element a 1px border, you get about .5em of whitespace above and below. The example at the given URL shows an H1, a number of DIVs, and a number of HRs, all without margins or padding. The H1 and the DIVs are all vertically adjacent, the HRs all have about .5em of whitespace separation. The HTML v4.0 specification says: "The amount of vertical space inserted between a rule and the content that surrounds it depends on the user agent." While technically allowable, this type of hard-coded whitespace is a major problem for web-page designers and should be eliminated. A .5em top and bottom margin can be emplaced in the default style sheet. This would allow a designer to size the separating whitespace as they see fit, even to the point of eliminating all of it.
This would be solved by fixing bug 38370.
Status: UNCONFIRMED → NEW
Depends on: 38370
Ever confirmed: true
Attached file testcase
Keywords: testcase
OS: Windows 2000 → All
Hardware: PC → All
Reassigning to Buster.
Assignee: clayton → buster
Priority: -- → P3
Moving to m1.0 and reassigning to attinasi.
Assignee: buster → attinasi
Target Milestone: --- → mozilla1.0
This is fixed by my fix to bug 38370.
Assignee: attinasi → ian
Whiteboard: [Hixie-P4] [fix in hand] fixed with bug 38370
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 (you can query for this string to delete spam or retrieve the list of bugs I've moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
This has indeed been fixed by the (eventual!) checkin for bug 38370 (30/07/2003). Checked the test case carefully, all margins as specified in the CSS with no extra spaces around the <hr> elements. Changing the default font size as directed in the test case and margins are still correct. Marking as WFM (Mozilla nightly 2003081304).
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: