Closed Bug 2040 Opened 26 years ago Closed 26 years ago

Setting margins on BODY to 0px via CSS

Categories

(Core :: Layout, defect, P2)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jeff, Assigned: troy)

References

()

Details

Setting margins to 0px either with 'margin-top', 'margin-bottom', etc. or the
'margin:' shortcut has no effect on the BODY element. Works fine on other block
elements (ie. paragraphs touch when margins are set to 0px). The URL above
points to a page with the margin set to 0px on all four sides of the BODY
element, yet there is a white gap on the canvas around the colored element. In
this example, the blue paragraph should be touching the browser chrome.

Adding the nonstandard marginwidth and marginheight attributes on the BODY tag
give the desired effect...
Assignee: kipp → troy
the default style rule for BODY in the ua.css has this in it:

padding: 8px;

so setting the margin to 0px did work, but the BODY isn't using a margin to
achive the boundary around it.

we should be able to convert back over to using a margin once the rendering
issues with the HTML area inheriting the BODY's background appropriately are
fixed. Since troys on that one, I'm reassigning it to him.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Changed ua.css to use margin and not padding
QA Contact: 4078
Status: RESOLVED → VERIFIED
verified on
        RH52-i386 99021512
        NT40-sp4  99021214
        MacOS851  99021213

(to get the element to touch the top, you need to set P's margin to 0px also)
You need to log in before you can comment on or make changes to this bug.