CSS text-model-line property
Show a line at the top of the paragraph:
{
text-decoration-line: overline;
-moz-text-decoration-line: overline; / * For Firefox code * /
}
Try it out . . .
Browser support
Almost all major browsers do not support the text-model-line property.
Firefox supports another property that can replace this property, the -moz-text-model-line property.
Definitions and usages
The text-decoration-line property specifies the type of line that text decorates to use.
Note: You can also use the text-lyn property to set text-level-line. The text-style property is a shorthand property of the text-level-line, text-style-style, and text-style-color properties.
Note: You can also use multiple values at the same time, such as underline and overline, to display lines above and below the text.
Default: | none |
---|---|
Inherited: | Whether |
Animated: | Whether. See Animation . |
Version: | CSS3 |
JavaScript syntax: | object.style.textDecorationLine |
CSS syntax
The property value
value | describe | test |
---|---|---|
none | Defaults.Specify that text is modified without lines. | test " |
underline | A line will be displayed below the text. | test " |
overline | A line will be displayed above the text. | test " |
line-through | A line will be displayed in the middle of the text. | test " |
initial | Set this property for its default value.See initial 。 | test " |
inherit | Inheriting this property from the parent element.See inherit 。 |