Click to return to the DHTML, HTML     
layout-grid-char Attribut...     layout-grid-line Attribut...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

layout-grid-char-spacing Attribute | layoutGridCharSpacing Property


Sets or retrieves the character spacing used for rendering the text content of an element with the layout-grid-type attribute set to loose.

Syntax

HTML{ layout-grid-char-spacing: sCharSpace }
ScriptingoObject.style.layoutGridCharSpacing [ = sCharSpace ]

Possible Values

sCharSpace String that specifies one of the following values:
autoLargest character in the font of the element is used to set the character grid.
lengthFloating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For more information about the supported length units, see CSS Length Units.
percentageInteger, followed by a %. The value is a percentage derived from the dimensions of the parent object.

The property is read/write with a default value of auto; the proposed cascading style sheets (CSS) extension attribute is inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

The visual effects of the layout-grid-char-spacing attribute are similar to the lineHeight property.

Web documents in East Asian languages, such as Chinese or Japanese, usually create a page layout for characters using a one- or two-dimensional grid. You can use the layout-grid attribute to incorporate this layout into Web documents.

The layout-grid-char-spacing attribute applies only to block-level elements.

Note For this property to have an effect, the layout-grid-mode attribute must be set to char or both, and the layout-grid-type attribute must be set to loose.

Example

This example uses the layout-grid-char-spacing attribute to specify character layout for a block of text.

<STYLE>
DIV.layout { layout-grid-char-spacing: auto }
</STYLE>

<DIV CLASS = "layout">
This is a block element containing a sentence of sample text.
</DIV>

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.