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

CSS text-lying property


May 06, 2021 CSS Reference Manual


Table of contents


CSS text-lying property


Set up h1, h2, h3 and h4 element text decoration:

h1 {text-decoration:overline}
h2 {text-decoration:line-through}
h3 {text-decoration:underline}

Try it out . . .

Description of property definition and use

The text-decoration property specifies the decoration added to the text.

Note: The decorated color is set by the "color" property.

Default: none
Inherited: no
Version: CSS1
JavaScript syntax: object .style.textDecoration="overline"


Browser support

The numbers in the table support the first browser version number of the property.

Attributes
text-decoration 1.0 3.0 1.0 1.0 3.5

The property value

Value Describe
none Default. Define the text of the standard.
underline Defines a line under the text.
overline Define a line on the text.
line-through Define a line that crosses under the text.
blink Define the text that flashes.
inherit Specifies that the value of the text-model property should be inherited from the parent element.


Related articles

CSS tutorial: CSS text