Closed
Bug 132907
Opened 22 years ago
Closed 22 years ago
improper margin in fixed position content
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: fdrake, Assigned: dbaron)
References
()
Details
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020313 BuildID: 2002031312 A page that uses CSS "position: fixed" is missing the right margin for the fixed-position element when an enclosed table has a width="100%" attribute. Reproducible: Always Steps to Reproduce: 1. Load http://starship.python.net/~fdrake/mozilla-bugs/sizing-in-fixed-position.html Actual Results: The 4px right margin is missing. Expected Results: Drawn the margin all the way around the <div> element. There is a screenshot of the result in Mozilla 0.9.9 at http://starship.python.net/~fdrake/mozilla-bugs/
Comment 1•22 years ago
|
||
Invalid. "width: 100%" means the content area of the <div> should be as white as the viewport. The div also has 4px of padding, so the inner padding edge on the right side ends up 4px off the viewport. Thus the rendering is correct... See http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width and http://www.w3.org/TR/REC-CSS2/box.html#box-dimensions What you want is "left: 0; right:0" instead of "width:100%"
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•