Information Technology Reference
In-Depth Information
IV
font-family defines the basic font for body text on this page. Several font families are named
because not everyone has the same fonts on their system. The order is important. Browsers will
check the system for each font in order, stopping when it finds one on the computer. 'Lucida
Grande' (with single quotation marks around the phrase because it is longer than one word) is a
base font for the Macintosh operating system, Verdana and Arial are Windows fonts that have
migrated across many platforms; nearly everyone will have one or the other. If a computer has none
of the above, the generic Sans-Serif font will display body text.
Selector
Property
Figure 14.4
CSS files describe the website look and
feel using plain text.
Value
Declaration
The Background property here defines a background image for the main body, here with that dis-
tinctive shade of blue used by many popular WordPress themes. The #alphanumeric code is a ren-
dering of the color in hexadecimal (Base 16 numbering); there's also a link to a JPEG image. The
Color property colors the body text (not the background).
The body descriptor rules end with the text-align property. This sets where the text sits on the
page. In Figure 14.4, the text is centered.
The next rule defines some of the page layout. Your Background-Color property defines what
goes around the text and shows another way of describing colors in CSS—it's called an English
word (white). There's a border around the page, with another hexadecimal color declaration.
Search WWH ::




Custom Search