HTML and CSS Reference
In-Depth Information
.onsale {text-decoration: blink;}
.underlined {text-decoration: underline;}
.struck {text-decoration: line-through;}
Compatibility
CSS 1, 2 IE 4+ Netscape 4+ (incomplete),
Netscape 6+ (complete), Firefox 1+
Opera 4+, Safari 1+
Notes
• Many user agents choose not to support the blink value for this property. Action is
to present the text normally. At the time of this writing, IE browsers (8 or less) and
Safari browsers (3 or less) do not support the blink value.
• The text-decoration property is often used with the a element and its associated
pseudo-classes ( a:active , a:hover , a:link , and a:visited ) to turn off link
underlining or set different looks for hover or visited states. Page authors concerned
about accessibility should be careful to provide alternate indicators such as position
or style if underlines are removed.
text-indent
This property specifies the indent in the first line of a block-level element.
Syntax
text-indent: length | percentage | inherit
where length is a standard length unit (10px), a percentage is a percentage value relative to
the enclosing element, and inherit derives the value of the property from some parent
element.
Examples
p {text-indent: .5em;}
.bigDent {text-indent: 50px;}
.negDent {text-indent: -20px;}
#section1 {text-indent: 15%;}
Compatibility
CSS 1, 2, 3
IE 3+
Netscape 4+, Firefox 1+
Opera 4+, Safari 1+
Notes
• This property applies to block elements, table cells, and inline block types.
• The default value is 0 , which indicates no indentation.
text-transform
This property transforms the case of the affected text.
Search WWH ::




Custom Search