Declaring font families


show more Declaring font families provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS5 Essential Training show less
please wait ...

Declaring font families

Using CSS gives you an amazing amount of control over your Web site's typography, but it doesn't change that the fact that we're still restricted to using standard font-families. Since HTML does not store font information, your Web page relies on the client's machine to have the requested font installed. If it's not available, another one is substituted. With CSS, not only can you control which font is initially requested but which ones should be used for substitution as well.

The way this works is that if you only request one font-family, if the client machine doesn't have it installed, the browser will then substitute its default font. Since you have no control over what someone has selected as their own default font, a better approach is to declare multiple fonts which will continue to go down the list until an installed font is found. Your final declaration should be a generic font-family, such as serif or sans serif. That way, in the unlikely event that none o...

Declaring font families
Video duration: 9m 39s 15h 22m Beginner

Viewers:

Declaring font families provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS5 Essential Training

Subject:
Web
Software:
Dreamweaver
Author:
please wait ...