CSS text-decoration-style Property

Clash Royale CLAN TAG#URR8PPP <!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]-->
CSS text-decoration-style Property
❮
Reference
❯
Example
Set different types of text-decoration styles:
div.a
text-decoration-line: underline;
text-decoration-style: solid;
div.b
text-decoration-line: underline;
text-decoration-style: wavy;
div.c
text-decoration-line: underline;
text-decoration-style: double;
div.d
text-decoration-line: overline underline;
text-decoration-style: wavy;
Try it Yourself »
Definition and Usage
The text-decoration-style property sets the style of the text decoration
(like solid, wavy, dotted, dashed, double).
Tip: Also look at the text-decoration property,
which is a short-hand property for text-decoration-line, text-decoration-style, and
text-decoration-color.
| Default value: | solid |
|---|---|
| Inherited: | no |
| Animatable: | no. Read about animatable |
| Version: | CSS3 |
| JavaScript syntax: | object.style.textDecorationStyle="wavy" Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Numbers followed by -moz- specify the first version that worked with a prefix.
| Property | |||||
|---|---|---|---|---|---|
| text-decoration-style | 57.0 | Not supported | 36.0 6.0 -moz- | Not supported | 44.0 |
<!--
mid_content, all: [300,250][336,280][728,90][970,250][970,90][320,50][468,60]-->
CSS Syntax
text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;Property Values
| Value | Description | Play it |
|---|---|---|
| solid | Default value. The line will display as a single line | Play it » |
| double | The line will display as a double line | Play it » |
| dotted | The line will display as a dotted line | Play it » |
| dashed | The line will display as a dashed line | Play it » |
| wavy | The line will display as a wavy line | Play it » |
| initial | Sets this property to its default value. Read about initial | Play it » |
| inherit | Inherits this property from its parent element. Read about inherit |
Related Pages
CSS tutorial: CSS Text
HTML DOM reference: textDecorationStyle property
❮
Reference
❯