Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

CSS text-model-line property


May 06, 2021 CSS Reference Manual


Table of contents


CSS text-model-line property

CSS text-model-line property CSS reference manual


Show a line at the top of the paragraph:

p
{
text-decoration-line: overline;
-moz-text-decoration-line: overline; / * For Firefox code * /
}

Try it out . . .

Browser support

CSS text-model-line property CSS text-model-line property CSS text-model-line property CSS text-model-line property CSS text-model-line property

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

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

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

CSS text-model-line property CSS reference manual