Re: [css-d] Vertical padding weirdness

2009-11-08 Thread Benct Philip Jonsson
G. Sørtun skrev: Benct Philip Jonsson wrote: So that's the margins of the h1 and the p interfering? Outside the boxes of the divs which contain them? I *really* don't understand how margins are calculated! You're encountering collapsing margins...

Re: [css-d] Vertical padding weirdness

2009-11-08 Thread G. Sørtun
Benct Philip Jonsson wrote: Will setting any small amount of padding on the innermost containing box do the trick, like 1px or even 0px as opposed to not declaring any padding at all? Has to result in a real vertical padding - minimum 1px - to work reliable, so 0px, or a value so small

Re: [css-d] Vertical padding weirdness

2009-11-05 Thread G. Sørtun
Benct Philip Jonsson wrote: So that's the margins of the h1 and the p interfering? Outside the boxes of the divs which contain them? I *really* don't understand how margins are calculated! You're encountering collapsing margins... http://www.w3.org/TR/CSS21/box.html#collapsing-margins