/

HTML / CSS / JavaScript Tutorial

CSS Property: text-decoration-line

[this page | pdf | back links]

The CSS (CSS3) text-decoration-line property indicates the type of line of the text decoration added to a given piece of text. For this property to have an effect, a visible text-decoration needs to have been applied to the text. Multiple values can be combined (e.g. underline and overline)

 

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.textDecorationLine="line-through"

Inherited:

No

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile