CSS Property text-decoration-line








The text-decoration-line property control the what type of line the decoration can have.

Summary

Initial value
none
Inherited
no
CSS Version
CSS3
JavaScript syntax
object.style.textDecorationLine="overline"
Animatable
no

CSS Syntax

text-decoration-line: none|underline|overline|line-through

Property Values

none
Default value. Specifies no line
underline
display line under the text
overline
display line over the text
line-through
display line through the text

Browser compatibility

text-decoration-line No No 6.0 -moz- No No




Example

<!DOCTYPE html>
<html>
<head>
<style>
p {<!-- w  w  w .  ja v  a  2s.  co  m-->
     -moz-text-decoration-line: overline; /* Code for Firefox */
     text-decoration-line: overline; 
}
</style>
</head>
<body>

<p>this is a test.</p>

</body>
</html>

Click to view the demo