CSS Property: text-decoration
[this page | pdf | back links]
The CSS (CSS1) text-decoration property indicates the
‘decoration’ (e.g. underlining) added to text. Note in CSS3 the text-decoration
property is supposed to be a shorthand property covering text-decoration-line,
text-decoration-color
and text-decoration-style
but at the time of writing this interpretation was not supported by major
browsers.
Valid property values
(other than inherit
and initial) are:
|
Value
|
Description
|
|
line-through
|
Last line is aligned
left
|
|
none
|
(default value). Normal
text, without decoration
|
|
overline
|
Add line above text
|
|
underline
|
Add line below text
|
|
Default Value:
|
none
|
|
JavaScript syntax:
|
e.g. object.style.textDecoration="line-through"
|
|
Inherited:
|
No
|
|
Animatable:
|
No
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties