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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6FontsChapter 5 presented a variety of text manipulation properties. This chapter continues the discussionof text manipulation with <strong>CSS</strong>’s font manipulation properties. <strong>CSS</strong> includes a variety of propertiesthat change the face, size, and style of a font. This chapter covers:❑❑❑❑❑❑The font-family property and how it is used to change the face of a fontThe font-style property and how it is used to make a font italic or obliqueThe font-variant property, a property similar to the text-trans<strong>for</strong>m property presentedin Chapter 5, and how this property is used to create a small-caps effectThe font-weight property and how it is used to increase or decrease how bold or light afont appearsThe font-size property and how it is used to increase or decrease the size of a fontThe font property and how it is used as shorthand to specify a number of other fontpropertiesI begin the discussion of <strong>CSS</strong>’s font properties with the font-family property.Specifying Fonts withthe font-family PropertyThe font-family property is used to specify fonts. The following table outlines the font-familyproperty and the values that it allows.Propertyfont-familyValue[[ | ] [, | ]*]Initial value: Varies depending on the browser or user agent.

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

Saved successfully!

Ooh no, something went wrong!