22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

78<br />

Part III: Taking Precise Control Over Web Pages and Styles<br />

Figure 11-1: The font family for hyperlinks differs from the<br />

font family for the rest of the text.<br />

Sizing<br />

The following properties allow you to control the dimensions of your text.<br />

Font size<br />

The style declaration to specify the size of text is<br />

selector {font-size: value;}<br />

The value of the declaration can be<br />

✓ One of the standard font-property measurement values (listed in<br />

Chapter 9)<br />

✓ One of these user-defined keywords:<br />

xx-small, x-small, small, medium, large, x-large, or xx-large<br />

The value of each keyword is determined by the browser, not by the<br />

style rule.<br />

The rules listed in upcoming subsections define<br />

✓ A relative font value for all text<br />

✓ An absolute value for the font size for all first-level headings<br />

body {color: #808000; font-family: Arial, sans-serif; font-size: 85%;}<br />

h1 {font-family: “trebuchet ms”, verdana, geneva, arial, helvetica,<br />

sans-serif; font-size: 2em; line-height: 2.5em; color: teal;}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!