Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Space after div
Re: Space after div
The problem is that this is about the only problem where background
colours fail to show what's wrong.
The collapsing margins are just that: margins. Margins don't have
background colours. If you would give the direct parent a
background-color, say blue, then you would see the blue right below
the red of the div, which is covered by the green of the contained p.
Unless you know about the collapsing margin, it's difficult to guess
that you should be seeing red below the green, instead of blue.
Els http://locusmeus.com /