
|
|
|||||
Font Familyfont-family sets the over all font to use for the element. You can specify either a specific font, such as Helvetica or Arial, or a generic font-family. You can't tell which fonts will be available on the user's computer, so font-family allows you to list a series of choices, separated by commas. The web browser uses the first font in the list that it understands.
So, for example, the following code (in a
H2
{
font-family:'Lucida Casual', 'Comic Sans MS';
}
which gives us this My Favorite Foods
Generic font families are all the font control you need in most situations. However, if you particularly want a specific font, the best technique is to combine named fonts with generic font families. For example, you could use several cursive style fonts, ending the list with the cursive generic font family:
H2.multi
{
H1 {font-family:'Brush Script MT',Phyllis,'Lucida Handwriting',cursive;}
}
which gives us an
My H2 Element
Copyright Idocs, Inc. Written by Miko Sullivan |
|||||
| About the NetVisits, Inc Network | Advertise Developer Tutorials hosted by HostGator. Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy. |