Closed Bug 3418 Opened 26 years ago Closed 26 years ago

{inc} CSS: Margin-bottom not working properly with a percentage value

Categories

(Core :: Layout, defect, P4)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: christinehoff4, Assigned: buster)

References

()

Details

Using 3/4 build on Win 95, Win NT, Win 98, Linux and Mac 8.5 (2/26 build)/ Open URL. Expected result: The paragraph should have a bottom margin of 50%. Actual result: The paragraph does not have a bottom margin of 50% - the bottom margin is much greate than tha.
Removing myself from cc.
Assignee: peterl → troy
Component: Style System → Layout
The margin shows up if you resize the window
Assignee: troy → kipp
Severity: normal → minor
Status: NEW → ASSIGNED
Priority: P2 → P4
Summary: CSS: Margin-bottom not working properly with a percentage value → {inc} CSS: Margin-bottom not working properly with a percentage value
Target Milestone: M6
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed. Note: % margins are based on the ***width*** of the containing block....The test works dandy now.
Status: RESOLVED → VERIFIED
Revised test case for verification: <HTML> <HEAD> <TITLE>margin-bottom: pct</TITLE> <STYLE type="text/css"> .three { margin-bottom: 50%; margin-top: 0; border: solid red } .one { width: 200px; border-style: solid } </STYLE> </HEAD> <BODY class="one"> <P class="three">Margin-top/right/bottom/left percentages refer to the 'width' of containing block. Containing block here is the BODY.</P> </BODY> </HTML> Margin-bottom percentage is verified fixed.
You need to log in before you can comment on or make changes to this bug.