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: Propertiestext-decoration: blink;}span.underover {text-decoration: underline overline;}span.underthrough {text-decoration: underline line-through;}span.overthrough {text-decoration: overline line-through;}span.example {background: mistyrose;}4. Save the preceding <strong>CSS</strong> as Example_5-4.css. The a<strong>for</strong>ementioned <strong>CSS</strong> and markup result inthe output in Figure 5-15.Figure 5-15How It WorksIn Example 5-4 you applied various styles of the text-decoration property. The first four rulesare pretty straight<strong>for</strong>ward; you created a separate rule <strong>for</strong> each of the four individual styles of thetext-decoration property, underline, overline, line-through, and blink.span.underline {text-decoration: underline;}span.overline {text-decoration: overline;}span.line-through {text-decoration: line-through;}span.blink {text-decoration: blink;}154

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

Saved successfully!

Ooh no, something went wrong!