CSS text-decoration-styleProperty
Example
Display different types of underlines:
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 »
Browser Support
The numbers in the table indicate the first browser version number that supports the property.
| Property | |||||
|---|---|---|---|---|---|
| text-decoration-style | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 | 44.0 |
Definition and Usage
The text-decoration-style property specifies how the line is displayed.
| Default value: | solid |
|---|---|
| Inherited: | no |
| Animatable: | No. SeeAnimatable。 |
| version: | CSS3 |
| JavaScript Syntax: | object.style.textDecorationStyle="wavy" Try it Yourself |
CSS Syntax
text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;
Property value
| Value | Description | Testing |
|---|---|---|
| solid | Default value. The line will display as a single line. | Test » |
| double | The line will display as a double line. | Test » |
| dotted | The line will display as a dotted line. | Test » |
| dashed | The line will display as a dashed line. | Test » |
| wavy | The line will display as a wavy line. | Test » |
| initial | Set this property to its default value. Seeinitial。 | Test » |
| inherit | Inherits this property from the parent element. Seeinherit。 |
other extensions