Difference between revisions of "CSS GUIDE TEXT DECORATION"

From CDOT Wiki
Jump to: navigation, search
(Summary)
m (Reverted edits by Janejoe (Talk) to last version by Sherman)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 04:22, 23 April 2009

Summary

The text decoration property is used to set text decoration (formatting) like underline, blink, line-through etc.

  • Applies to: all
  • Inherited: no
  • Percentages: N/A
  • Media: visual
  • Computed value: as specified

Syntax

TARGET_ELEMENT{text-decoration: value ;}

Legal Values

noneSpecifies that no text decoration is to be used.
underlineUnderlines text.
overlinePlaces a line over the text.
line-throughPlaces a line(strike) through the text.
blinkCauses the text to blink.

Mozilla Recommended Values

Usage Examples

p{text-decoration: line-through;}

p{text-decoration: underline;} 

Notes

Specification Conformance

CSS 1
CSS 2.1
CSS 3

Browser Compatibility

See Also