13.07.2015 Views

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

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.

Part II: PropertiesTry It OutApplying a Font SizeExample 6-3. Follow these steps to try out the font-size property.1. In your text editor, type the following markup:font-sizeThe font-size property supports a variety of methods <strong>for</strong>specifying a font size. For example, thereare seven different absolute size keywords, which set thefont size relative to the user’s font size preference.xx-smallx-smallsmallmediumlargex-largexx-largeYou can also make fontslarger orsmaller by wayof the larger orsmaller keywords.You can make fonts50% largeror 25% smaller by wayof percentages.You can even make a font50% largeror 25% smaller by wayof em units.2. Save the markup as Example_6-3.html.3. In a new document in your text editor, write the following <strong>CSS</strong>:192

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

Saved successfully!

Ooh no, something went wrong!