Setting margins on BODY to 0px via CSS

VERIFIED FIXED

Status

()

P2
normal
VERIFIED FIXED
20 years ago
20 years ago

People

(Reporter: jeff, Assigned: troy)

Tracking

Trunk
x86
Windows 95
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

20 years ago
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...

Updated

20 years ago
Assignee: kipp → troy

Comment 1

20 years ago
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.
(Assignee)

Updated

20 years ago
Status: NEW → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → FIXED
(Assignee)

Comment 2

20 years ago
Changed ua.css to use margin and not padding

Updated

20 years ago
QA Contact: 4078

Updated

20 years ago
Status: RESOLVED → VERIFIED

Comment 3

20 years ago
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.