![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, when I have two nested divs, the inner one with a margin-bottom and the outer one with a padding-bottom, the margin of the inner div is ignored when I set the padding of the outer div to 0. Look at this example: http://kundenweb.creations.de/usenet...fulpadding.htm Since this is valid in IE and Firefox it's probably the desired behaviour, but where is it defined in the spec? |
#3
| |||
| |||
|
|
In article 49144485-582d-49ad-9763-f9966b1aec16...oglegroups.com>, André Hänsel <andre (AT) webkr (DOT) de> wrote: Hi, when I have two nested divs, the inner one with a margin-bottom and the outer one with a padding-bottom, the margin of the inner div is ignored when I set the padding of the outer div to 0. Look at this example: http://kundenweb.creations.de/usenet...fulpadding.htm Since this is valid in IE and Firefox it's probably the desired behaviour, but where is it defined in the spec? You might also notice that a border on the containing div also triggers the margin to show on the contained element |
![]() |
| Thread Tools | |
| Display Modes | |
| |