CSS 2 Example 24

>> English << | česky | Português ZVON > Tutorials > CSS2 tutorial
Intro / Search / ZVON
>> Example 24 << | Prev | Next | Index | Contents

A text can be "decorated" with text-decoration property. The value of this property can be underline, overline, line-through, and blink (1). These values can be combined (2).

XML SourceCSS stylesheetExample link
(1)
<AAA>
<BBB>bbb</BBB>
<CCC>ccc</CCC>
<DDD>ddd</DDD>
<EEE>eee</EEE>
</AAA>

* {padding:10px}
BBB {text-decoration: underline}
CCC {text-decoration: overline}
DDD {text-decoration: line-through}
EEE {text-decoration: blink}
View output
XML SourceCSS stylesheetExample link
(2)
<AAA>
<BBB>bbb</BBB>
<CCC>ccc</CCC>
<DDD>ddd</DDD>
<EEE>eee</EEE>
</AAA>

* {padding:10px}
BBB {text-decoration: underline overline line-through}
CCC {text-decoration: overline underline}
DDD {text-decoration: line-through underline}
EEE {text-decoration: underline overline line-through blink}
View output

AltStyle によって変換されたページ (->オリジナル) /