A
Adi Schwarz
Hi,
Is it known that mozilla has problems with aboslute widths in divs?
I reduced that error to a very simple page:
<html>
<body>
<div style="width:50px; background-color: blue; padding:5px">nl</div>
<table style="width:50px; background-color: green; padding: 0px"
border="0" cellspacing=0 cellpadding=0><tr><td>asd</td>
</tr></table>
</body>
</html>
Mozilla seems to mistake padding with margin in that context - the div's
width is 60px in this context (the DOM-Inspector calculates the right
CSS-definitions, but in the "box-model" it says 60px width to this box).
This does not occur if padding is set to 0px.
My IE5 has no problems with that situation, but I have been told that
some IEs make similar errors when there is some content in the div.
Had anyone else that strange problem?
Greets,
-adi
Is it known that mozilla has problems with aboslute widths in divs?
I reduced that error to a very simple page:
<html>
<body>
<div style="width:50px; background-color: blue; padding:5px">nl</div>
<table style="width:50px; background-color: green; padding: 0px"
border="0" cellspacing=0 cellpadding=0><tr><td>asd</td>
</tr></table>
</body>
</html>
Mozilla seems to mistake padding with margin in that context - the div's
width is 60px in this context (the DOM-Inspector calculates the right
CSS-definitions, but in the "box-model" it says 60px width to this box).
This does not occur if padding is set to 0px.
My IE5 has no problems with that situation, but I have been told that
some IEs make similar errors when there is some content in the div.
Had anyone else that strange problem?
Greets,
-adi