layout-grid Attribute | layoutGrid Property
Sets or retrieves the composite document grid properties that specify the layout of text characters.
Syntax
HTML { layout-grid: sLayout ... } Scripting oObject.style.layoutGrid [ = sLayout ]
Possible Values
sLayout String that specifies one or more of the following values:
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. space Any of the range of space values available to the layoutGridCharSpacing property. The property is read/write with no default value; 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
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.
Example
This example uses the layout-grid attribute to specify character layout for a block of text.
<STYLE> DIV.layout { layout-grid: char line 12px 12px .5in } </STYLE> <DIV CLASS = "layout"> This is a block element containing a sentence of sample text. </DIV>
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, 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, MAP, 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
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.