/

HTML / CSS / JavaScript Tutorial

CSS Property: text-decoration-style

[this page | pdf | back links]

The CSS (CSS3) text-decoration-style property indicates the style of any line in any visible 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.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

dashed

Text decoration displays as a dashed line

dotted

Text decoration displays as a dotted line

double

Text decoration displays as a double line

solid

(default value). Text decoration displays as a single line

wavy

Text decoration displays as a wavy line

 

Default Value:

solid

JavaScript syntax:

e.g. object.style.textDecorationStyle="dotted"

Inherited:

No

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile