Closed
Bug 53374
Opened 24 years ago
Closed 24 years ago
DIVs with padding are too wide
Categories
(Core :: Layout, defect, P3)
Tracking
()
People
(Reporter: f.bischof, Assigned: clayton)
References
Details
Attachments
(1 file)
466 bytes,
text/html
|
Details |
a DIV like this <div stlye="width:200px;padding:25px">...</div> will be 250px wide - not 200px as defined by the width-attribute. The padding should be applied *within* the div, shouldn't it?
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Sorry, there's a typo in the attached example. It should read "This is a 250px wide DIV"
Comment 3•24 years ago
|
||
width is the content width exclusive of padding. *** This bug has been marked as a duplicate of 50449 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Comment 4•24 years ago
|
||
See http://www.w3.org/TR/REC-CSS2/box.html#box-dimensions and do not rely on Internet Explorer for checking. IE is very buggy.
Status: RESOLVED → VERIFIED
Comment 5•18 years ago
|
||
*** Bug 330323 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•