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.

Chapter 6: Fontsbody {font: 16px sans-serif;}span {background: mistyrose;}4. Save the preceding <strong>CSS</strong> as Example_6-3.css. The results of these modifications can be seen inFigure 6-16.Figure 6-16How It WorksIn Example 6-3, you tried a variety of different methods of setting a font size. You began by typing outall seven absolute font sizes, from xx-small to xx-large.Next you experimented with three different ways of adjusting a font size relative to the parent elementor browser default font size. You began with the larger and smaller keywords. The larger keywordmakes the font size 1.2 times larger, and the smaller keyword makes the font size 1.2 times smaller.You can also make fontslarger orsmaller by wayof the larger orsmaller keywords.193

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

Saved successfully!

Ooh no, something went wrong!