koli yume
(?)Community Member
- Report Post
- Posted: Tue, 15 Aug 2006 07:28:46 +0000
The more you know!!!
What is line height?
The line-height property increases the space between lines of text. When you increase the value you increase the line inbetween the text. If you are curious, try tweaking this ability, save your CSS file, and see how it changes.
What is a pixel?
Basically, one pixel is one of the tiny dots that make up what you see on the computer screen. The screen itself is made up of hundreds of thousands of these pixels.
Now, to the paragraph styles:
Quote:
p {
font-family: Times, "Times New Roman", serif;
color: navy;
}
We've already shown that it's possible to change the color of text in a paragraph; now, we're going to settle on the color of navy.
Let's see what's changed with the list item style:
Quote:
li {
font-size: small;
}
font-size: small;
}
The size of the list items has changed slightly through the font-size property. Here, we've decided to set the font size using the small keyword, but we could just as easily have used the percentage or pixel methods. Font-size property ranges from xx-small to xx-large.
Next, we introduced a new rule, this time for the h1 element (the main heading on our web pages, which displays the site name) and, once again, used a font-size property to specify the size of the text (extra large is the answer! Gigity gigity-ooohh right!).
Quote:
h1 {
font-size: x-large;
}
font-size: x-large;
}
The h2 element also gets a slight makeover:
Quote:
h2 {
color: blue;
font-size: medium;
font-weight: normal;
}
color: blue;
font-size: medium;
font-weight: normal;
}
*A special note for you!!!*
Normally browsers display the heading in bold-type, but if you wanted you could change it to standard type by giving the font-weight property a value of normal.