Ruby-Position, Size, and Other Style Sheet Properties - Text-autospace
(Page 4 of 4 )
text-autospace
IE 5(Win) NN n/a Moz n/a Saf n/a Op n/a CSS n/a
Inherited: No
Controls the spacing between ideographic (typically Asian languages) and nonideographic characters.
CSS Syntax
text-autospace: spacingType
Value
One of the following constants: ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space | none.
Initial Value non e
Example div {text-autospace: ideograph-numeric}
Applies To All elements .
Object Model Reference
[window.]document.getElementById("elementID").style.textAutospace
text-decoration
IE 4 NN 4 Moz all Saf all Op all CSS 1
Inherited: No
Specifies additions to the text content of the element in the form of underlines, strikethroughs, overlines, and (in Navigator and CSS) blinking. You may specify more than one decoration style by supplying values in a space-delimited list. Thankfully, mainstream browsers ignore the blink setting. Navigator 4 does not recognize the overline decoration.
Text decoration has an unusual parent-child relationship. Values are not inherited, but the effect of a decoration carries over to nested items. Therefore, unless otherwise overridden, an underlined p element underlines a nested span element within, for example.
CSS Syntax
text-decoration: decorationStyle | none
Value
In addition to none, any of the following four constants: blink | line-through | overline | underline , but Mozilla ignores blink.
Initial Value none
Example div.highlight {text-decoration: underline}
Applies To All elements.
Object Model Reference
[window.]document.getElementById("elementID").style.textDecoration
[window.]document.getElementById("elementID").style.textDecorationBlink [window.]document.getElementById("elementID").style.textDecorationLineThrough [window.]document.getElementById("elementID").style.textDecorationNone
text-indent
[window.]document.getElementById ("elementID").style.textDecorationOverLine
[window.]document.getElementById("elementID").style.textDecorationUnderline
text-indent
IE 4 NN 4 Moz all Saf all Op all CSS 1
Inherited: Yes
Sets the size of indenting of the first line of a block of inline text (such as a p element). Only the first line is affected by this setting. A negative value can be used to outdent the first line, but be sure the text does not run beyond the left edge of the browser window or frame.
CSS Syntax
text-indent: length | percentage
Value
See the discussion about length values at the beginning of this chapter. Negative lengths may be allowed in some contexts, but be sure to test the results on all browsers. You may also specify a percentage value, which is calculated based on the width of the next outermost container.
Initial Value 0
Example
body {text-indent: 2em}
p.firstGraphs {text-indent: 0}
Applies To Block-level elements.
Object Model Reference
[window.]document.getElementById("elementID").style.textIndent
Please check back next week for the conclusion to this article.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
|
This article is excerpted from chapter four of Dynamic HTML: The Definitive Reference, Third Edition, written by Danny Goodman (O'Reilly; ISBN: 0596527403). Check it out today at your favorite bookstore. Buy this book now.
|
|