CSS Text-decoration Properties

Source: Internet
Author: User

Definition and usage

The Text-decoration property specifies the adornment that is added to the text.

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

Description

This property allows you to set some kind of effect on text, such as underlining. If the descendant elements do not have their own decorations, the decorations set on the ancestor elements "extend" to the descendant elements. User agents are not required to support blink.

Default value: None
Inheritance: No
Version: CSS1
JavaScript Syntax: object. style.textdecoration= "Overline"
Possible values
value Description
None Default. Defines the standard text.
Underline Defines a line below the text.
Overline Defines a line on the text.
Line-through Defines a line that passes through the text.
Blink Defines the blinking text.
Inherit Specifies that the value of the Text-decoration property should be inherited from the parent element.
Instance

Set text decorations for H1, H2, H3, H4 elements:

H1 {text-decoration:overline}h2 {text-decoration:line-through}h3 {text-decoration:underline}h4 {text-decoration: Blink

CSS Text-decoration Properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.