Easy Tutorial
❮ Prop Cssstyle Csstext Prop Date Value ❯

Style textDecorationStyle Property

Style Object

Example

Display a wavy line below a paragraph:


Definition and Usage

The textDecorationStyle property sets or returns how the line is displayed.


Browser Support

Almost all major browsers do not support the textDecorationStyle property.

Firefox supports an alternative property, MozTextDecorationStyle.


Syntax

Return the textDecorationStyle property:

Set the textDecorationStyle property:

Property Values

Value Description
solid Default value. The line will be displayed as a single line.
double The line will be displayed as a double line.
dotted The line will be displayed as a dotted line.
dashed The line will be displayed as a dashed line.
wavy The line will be displayed as a wavy line.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: solid
Return value: String, representing the text-decoration-style property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: text-decoration-style Property


Style Object

❮ Prop Cssstyle Csstext Prop Date Value ❯