24 lines
871 B
Markdown
24 lines
871 B
Markdown
|
---
|
||
|
title: Text Decoration Property
|
||
|
---
|
||
|
## Text Decoration Property
|
||
|
|
||
|
The text-decoration property specifies the decoration added to text. It has 6 possible values:
|
||
|
```css
|
||
|
.none {text-decoration: none}
|
||
|
.underline {text-decoration: underline}
|
||
|
.line-through {text-decoration: line-through}
|
||
|
.overline {text-decoration: overline}
|
||
|
.initial {text-decoration: initial}
|
||
|
.inherit {text-decoration: inherit}
|
||
|
```
|
||
|
|
||
|
**Note**: In CSS3 you can use the text-decoration-color property to change the color of the decoration, otherwise the color is the same as the color of the text.
|
||
|
|
||
|
|
||
|
#### More Information:
|
||
|
|
||
|
Docs: <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration' target='_blank' rel='nofollow'>Mozilla Developer Network</a>
|
||
|
|
||
|
Browser Support: <a href='http://caniuse.com/#search=text-decoration' target='_blank' rel='nofollow'>Caniuse</a>
|