Home arrow DHTML arrow Page 4 - Ruby-Position, Size, and Other Style Sheet Properties
DHTML

Ruby-Position, Size, and Other Style Sheet Properties


In this ninth part of an ongoing series on style sheet properties, you'll learn about size, scrollbars, and more. This article is excerpted from chapter four of Dynamic HTML: The Definitive Reference, Third Edition, written by Danny Goodman (O'Reilly; ISBN: 0596527403). Copyright 2006 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media.

Author Info:
By: O'Reilly Media
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
October 25, 2007
TABLE OF CONTENTS:
  1. · Ruby-Position, Size, and Other Style Sheet Properties
  2. · Size
  3. · Speech-rate
  4. · Text-autospace

print this article
SEARCH DEVARTICLES

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.

blog comments powered by Disqus
DHTML ARTICLES

- Text-Justify, Volume, and Other Style Sheet ...
- Ruby-Position, Size, and Other Style Sheet P...
- Padding, Pages, and More Style Sheet Propert...
- Marks, Orphans, and More Style Sheet Propert...
- Layouts, Margins, and Other Style Sheet Prop...
- Floats, Fonts, and Other Style Sheet Propert...
- Color, Filters, and Other Style Sheet Proper...
- Borders and More with Style Sheets
- Learning Style Sheet Properties
- Style Sheet Property Reference
- Completing a Noisy Image Application
- An Object-Based Approach to Building Noisy I...
- A Basic Method for Building Noisy Images
- Adding More Features to Sliders with the Scr...
- Using Sliders with the Scriptaculous Framewo...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials