victor NOAGBODJI wrote:
> In my CSS I have h1,h2,h3 {margin:0;padding:0}
> So that I can set margin bottom; the problem is that it isn't working.
You're running into a problem with collapsing margins. Adjacent
vertical margins are combined into one, and placed at the top:
http://www.w3.org/TR/CSS21/box.html#collapsing-margins
The paragraphs after the header elements need to have no top margin.
Ideally, you would do this with
h1 + p, h2 + p, h3 + p {
margin-top: 0;
}
but the 800-lb gorilla that is IE(<7) doesn't understand this. You can
simply add a class to those paragraph elements. If the HTML is really
under your control, this is often the easiest way.
Good luck,
-- Scott
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/