Connecting Tech Pros Worldwide Forums | Help | Site Map

How do I change the leading between header and the paragrph text

Desser
Guest
 
Posts: n/a
#1: Aug 12 '08
CSS Newbee.

I need to have lesser space between the h1 and the paragraph text.

My header is 28 pixels and the body text is 12 pixels.

How do I do this?

Here is my CSS:

p {

font-family: "Times New Roman", Times, serif;

font-size: 13px;

font-weight: normal;

color: #990066;

line-height: 110%;

}

h1 {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 28px;

font-style: normal;

line-height: 80%;

font-weight: bold;

color: #009900;

text-transform: none;

}



Jonathan N. Little
Guest
 
Posts: n/a
#2: Aug 12 '08

re: How do I change the leading between header and the paragrph text


Desser wrote:
Quote:
CSS Newbee.
Okay...
Quote:
>
I need to have lesser space between the h1 and the paragraph text.
>
My header is 28 pixels and the body text is 12 pixels.

Well if a newbie then start out right from the start. Do not use pixels
to size your fonts.

http://www.google.com/search?hl=en&q...=Google+Search
font size in pixels bad web design - Google Search
Quote:
>
How do I do this?
The property is "margin"

http://www.w3.org/TR/CSS21/box.html
Chapter 8 Box model

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Closed Thread