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.

Part II: PropertiesThe text-decoration PropertyThe text-decoration property applies underlining, overlining, and strikethrough to text. The followingtable outlines the text-decoration property and the values it allows.Propertytext-decorationValuenone | [ underline || overline || line-through || blinkInitial value: noneSafari and IE do not support the blink keyword.Because this property is a little more complicated than those covered previously, a simple explanation ofits use is warranted.To demonstrate the various styles available using this property, consider the example in Figure 5-13a.The <strong>CSS</strong> in Figure 5-13a is combined with the markup in Figure 5-13b.Figure 5-13c shows the various effects provided by the text-decoration property as specified by thepreceding code.However, this is not all that is possible with the text-decoration property. This notation[ underline || overline || line-through || blink ]means that the text-decoration property can accept one or more of these values. To specify more thanone value, each value is separated by a single space. Take <strong>for</strong> example the code in Figure 5-14a.Figure 5-13a150

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

Saved successfully!

Ooh no, something went wrong!