This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

text-decoration-line-through

Overview table

Initial value
:

Applies to
All elements
Inherited
No
Media
visual

Computed value
:

Animatable
No

CSS Object Model Property
:

Syntax

  • text-decoration-line-through: VARIANT_FALSE
  • text-decoration-line-through: VARIANT_TRUE

Values

VARIANT_TRUE
Apply the line-through.
VARIANT_FALSE
Prevent the line-through.

Examples

This example uses the textDecorationLineThrough property to draw a line through the text when the user clicks it with the mouse.

<P onclick="this.style.textDecorationLineThrough=true;">
Click this if you think it's unimportant.
</P>

Syntax

textDecorationLineThrough: VARIANT_TRUE | VARIANT_FALSE

Requirements

{

See also

Related pages

Attributions