Forum Moderators: not2easy

Message Too Old, No Replies

How to remove leading after header tag

need to take out white space

         

Lorel

6:51 pm on Oct 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi

Is there a way to remove the white space (leading) after the header tag? I want to utilize Header 2 but have the text start right after the tag to save space on the page.

I've tried putting line-height in the code but it doesn't change.

any suggestions?

drbrain

6:55 pm on Oct 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



h2 { margin-bottom: 0; }

Note also that paragraphs sometimes have a top margin as well:

p { margin-top: 0; }

photon

6:57 pm on Oct 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




h2 {margin-bottom:0;}
p {margin-top:0; margin-bottom:15px;}

That's one example you can put in your CSS file. Use the bottom margin on the paragraphs to separate them.

D'oh! too slow...

Lorel

8:06 pm on Oct 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks folks.

The header tag worked by itself.

lori