Page 1 of 1

CSS Style Sheets

PostPosted: Mon Aug 27, 2007 5:06 pm
by DJ
Hate the line underneath your H-tags?!

Add this to your style sheet!

h1,h2,h3,h4,h5,h6{
margin-bottom: 0px;
padding-bottom: 0px;}

Took me forever to find this easy little snipit of code. Thank you CSS! :o

More options

PostPosted: Thu Sep 06, 2007 9:23 am
by Prashant
Just to add.. If you want more control on the spacings you can specify the style like this

h1 {
margin:5px 0px 5px 0px;
}

Now to explain it more, Using the code you have assigned 5 pixel margin to the top and 5 pixel margin to the bottom.

The format for specifying the margin is as follows margin: top(5px) right(0px) bottom(5px) left(0px);


You can use the same format for padding as well.