August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.classes.className.tagName.textDecoration
The textDecoration property specifies the type of decoration that is added to text as associated with the class called className. The definition can also specify a tag or the word all for tagName.
There are four types of values that are valid for the textDecoration property: underline, line-through, blink, and none.
Listing 7.90 uses the textDecoration property to put a line through a line of text.
<html> <script> <!-- Hide //Create a style sheet class that defines text decoration document.classes.CROSSOUT.all.textDecoration = "line-through"; //Hide End ... |
Read now
Unlock full access