Closed Bug 306366 Opened 20 years ago Closed 20 years ago

div and padding

Categories

(Core :: Layout, defect)

1.7 Branch
x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 239256

People

(Reporter: danielhagnoul, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 <div style="width: 120pt; padding-left: 9pt; padding-right: 9pt;">Mon texte</div> devrait laisser 120 - 18 = 102pt pour "Mon texte" alors que Firefox fait 120pt pour "Mon texte" et 120 + 18 = 138pt (width) pour la largeur de la <div>. Cette différence de comportement avec Internet Explorer fait qu'il est extrèmement difficile de réaliser un même site pour les deux navigateurs ! De même le margin-top de <table>, <font>, <h>, <ol>, etc... devrait être égal à 0 par défaut. Reproducible: Always
AltaVista translation: "My text should leave 120 - 18 = 102pt for "My text" whereas Firefox made 120pt for "My text" and 120 + 18 = 138pt (width) for the width of. This difference of behavior with Internet To explore made that it is extrèmement difficult of réaliser a même site for the two navigators! Of même the margin-signal of,, etc... would owe être égal � 0 by default." You didn't specify which version of Internet Explorer you tested this with. I believe IE6 does it correctly. See http://www.w3.org/TR/2005/WD-CSS21-20050613/box.html#mpb-examples for box model information. If you still believe there is a problem, attach a standalone testcase using the 'Create a New Attachment' link. *** This bug has been marked as a duplicate of 239256 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Component: General → Layout
Product: Firefox → Core
Resolution: --- → DUPLICATE
Version: unspecified → 1.7 Branch
You need to log in before you can comment on or make changes to this bug.