Closed Bug 53374 Opened 24 years ago Closed 24 years ago

DIVs with padding are too wide

Categories

(Core :: Layout, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 50449

People

(Reporter: f.bischof, Assigned: clayton)

References

Details

Attachments

(1 file)

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?
Sorry, there's a typo in the attached example. It should read "This is a 250px
wide DIV"
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
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
*** 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.

Attachment

General

Created:
Updated:
Size: