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.

Try It OutThe letter-spacing PropertyExample 5-1. To see the letter-spacing property in action, follow these steps.1. Enter the following markup:letter-spacingLetter SpacingThe letter-spacing property can take either apositive or negative length value. The higher the value, thefarther apart the letters; the lower thevalue, the closer together the letters.2. Save the preceding markup as Example_5-1.html.3. Enter the following <strong>CSS</strong>:body {font: 14px sans-serif;}h4 {border-bottom: 1px solid green;margin-bottom: 3px;}p {margin: 0;}.code {font-family: monospace;}.higher,.lower {letter-spacing: 5px;background: lavender;color: midnightblue;}.lower {letter-spacing: -1px;}Chapter 5: Text Manipulation135

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

Saved successfully!

Ooh no, something went wrong!