![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I use to trust Firefox, but in this case, I don't know what to think. My test page: http://gusgus.cn/test/index.html IE6 does the right thing. The containting <div> is 600px, and within it, there's one <div> of 400px and another of 200px, laying side by side. The right <div> has padding on the left and right, to add some space within the box, but Firefox (0.9.2) seem to confuse paddings as margins. Here's the right <div> in my CSS: #right { float: right; width: 200px; overflow: hidden; background-color: #DDDDFF; /* blue */ text-align: left; padding: 8px 8px 8px 8px; } This box in Firefox is not 200 wide, but 216 (width + padding). It must be a bug, or my understanding of margins and padding will crumble. |
#3
| |||
| |||
|
|
I use to trust Firefox, but in this case, I don't know what to think. My test page: http://gusgus.cn/test/index.html IE6 does the right thing. The containting <div> is 600px, and within it, there's one <div> of 400px and another of 200px, laying side by side. The right <div> has padding on the left and right, to add some space within the box, but Firefox (0.9.2) seem to confuse paddings as margins. Here's the right <div> in my CSS: #right { float: right; width: 200px; overflow: hidden; background-color: #DDDDFF; /* blue */ text-align: left; padding: 8px 8px 8px 8px; } This box in Firefox is not 200 wide, but 216 (width + padding). It must be a bug, or my understanding of margins and padding will crumble. |
#4
| |||
| |||
|
| http://gusgus.cn/test/index.html IE6 does the right thing... |
|
Here's the right <div> in my CSS: #right { float: right; width: 200px; overflow: hidden; background-color: #DDDDFF; /* blue */ text-align: left; padding: 8px 8px 8px 8px; } This box in Firefox is not 200 wide, but 216... ...a bug, or my understanding of margins and padding will crumble. |
#5
| |||
| |||
|
|
I use to trust Firefox, but in this case, I don't know what to think. My test page: http://gusgus.cn/test/index.html This box in Firefox is not 200 wide, but 216 (width + padding). It must be a bug, or my understanding of margins and padding will crumble. |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |