1 out of 1 rated this helpful - Rate this topic

-ms-layout-grid Attribute | layoutGrid Property

Sets or retrieves the composite document grid properties that specify the layout of text characters.

Syntax

CSS { -ms-layout-grid : sLayout }
Scripting [ sLayout = ] object.style.layoutGrid

Possible Values

sLayout String that specifies or receives one or more of the following values, in the order specified:
mode
Any of the range of mode values available to the layoutGridMode property.
type
Any of the range of type values available to the layoutGridType property.
line
Any of the range of line values available to the layoutGridLine property.
char
Any of the range of character values available to the layoutGridChar property.

The property is read/write. The property has a default value of both loose none none. The Cascading Style Sheets (CSS) attribute is inherited.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are supported in IE7 Standards mode and IE5 (Quirks) mode only. For more information, see About Dynamic Properties and Defining Document Compatibility.

Remarks

Windows Internet Explorer 8. The -ms-layout-grid attribute is an extension to CSS, and can be used as a synonym for layout-grid in IE8 Standards mode.

Though you don't have to specify all four values for the -ms-layout-grid attribute, they must be listed in the order given in Possible Values.

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

Example

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


<STYLE>
DIV.layout { layout-grid: both fixed 12px 12px }
</STYLE>

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

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 3 (CSS3).

Applies To

A, ABBR, ACRONYM, ADDRESS, APPLET, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CSSStyleDeclaration, currentStyle, CUSTOM, DD, defaults, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, META, nextID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP, CSSRuleStyleDeclaration Constructor, CSSStyleDeclaration Constructor
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ