Closed Bug 811 Opened 26 years ago Closed 26 years ago

default margin on DIV elements is non-zero

Categories

(Core :: Layout, defect, P2)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: howcome, Assigned: buster)

References

()

Details

This is not a bug since User Agents are free to use any default style sheet. I do think margins values should be zero in the browser's default style sheet, though. For a test case, See issue #6 in the attached URL
Assignee: peterl → kipp
Component: Style System → Layout
There actually isn't a margin on the DIVs. The parser is inserting a "Text <\n\n>" between them (probably correctly), and we're laying out a blank line of text. Should the (completely whitespace) text have a 0 height?
Status: NEW → ASSIGNED
I'm slightly confused. By setting DIV { margin: 0 } in the test documetn, I'm able to remove the spacing between the two DIV elements. So it seems like the margin has something to do with it. I suggest making DIV { margin:0 } the default behavior (but you are, of course, free encode this any way you want interally) BTW, I tested Nav4 and the existance of a DIV elemement didn't seem to alter the spacing between the elements, so I think this is the best behavior for backwards compatibility as well.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
DIV margins (top/bottom) are going to be auto for backwards compatability.
Status: RESOLVED → VERIFIED
QA Contact: 4082
Verifying as fixed, Seamonkey Feb4
You need to log in before you can comment on or make changes to this bug.