Break after H1 Tag

They have: 52 posts

Joined: Dec 2002

Is there a good way to decrease line spacing after an H1?
Ex.
Heading
some text

There is often an extra line between them that I can't seem to remove without removing the H1 tag.

openmind's picture

He has: 945 posts

Joined: Aug 2001

The easiest way is to use css. For example:

h1{
font-family: Tahoma, Verdana, sans-serif;
font-size:  16px;
color: #000000;
font-weight : bold;
padding: 0px;
margin: 0px;
}
'
will result in a 0px margin around anyting in the h1 tag

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Note: unit measures are not required (indeed are not accepted) for zero values

margin: 0;
padding: 0;

Zero is zero is zero, no matter whether you're measuring in pixels, ems, percentages or cubits.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.