Difference between revisions of "CSS GUIDE TEXT DECORATION"

From CDOT Wiki
Jump to: navigation, search
(Legal Values)
(Usage Examples)
Line 33: Line 33:
  
 
== Usage Examples ==
 
== Usage Examples ==
 +
<pre>
 +
p
 +
{
 +
text-decoration: line-through;}
 +
 +
p
 +
{
 +
text-decoration: underline
 +
}
 +
</pre>
  
 
== Notes ==
 
== Notes ==

Revision as of 13:04, 22 November 2006

Summary

The text decoration property is used to set text decoration (formatting) like bold, underline, italics 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

Browser Compatibility

See Also