You are here : cssCSS 3text-decoration-line

text-decoration-line - CSS 3

The text-decoration-line property specifies what type of line, if any, the decoration will have.Note: You can also set the text-decoration-line using the text-decoration property,
which is a short-hand property for the text-decoration-line, text-decoration-style, and the text-decoration-color properties.Note: You can also combine more than one value, like underline and overline to display lines both under and over the text.


Syntax

text-decoration-line: none|underline|overline|line-through|initial|inherit;


Example

p
{   
-moz-text-decoration-line: overline; /* Code for Firefox */
   
text-decoration-line: overline;
}


Output / Return Value


Limitations


Alternatives / See Also


Reference