-ms-layout-grid-char property
Sets or retrieves the size of the character grid used for rendering the text content of an element.
Syntax
-ms-layout-grid-char: none | auto |
<length>
|
<percentage>
Property values
none-
Default. No character grid is set.
auto-
Largest character in the font of the element is used to set the character grid.
- length
-
Floating-point number, followed by an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx). For more information about the supported length units, see CSS Values and Units Reference. - percentage
-
Integer, followed by a percent sign (%). The value is a percentage derived from the dimensions of the parent object.
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
There are no standards that apply here.
Remarks
Windows Internet Explorer 8. The -ms-layout-grid-char attribute is an extension to CSS, and can be used as a synonym for layout-grid-char in IE8 Standards mode.
The visual effects of the -ms-layout-grid-char attribute are similar to the line-height property.
Web documents in 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 -ms-layout-grid attribute to incorporate this layout into Web documents.
The -ms-layout-grid-char attribute applies only to block-level elements.
Note For this property to have an effect, the -ms-layout-grid-mode attribute must be set to line or both.
Examples
This example uses the -ms-layout-grid-char attribute to specify character layout for a block of text.
<STYLE>
DIV.layout { layout-grid-char: auto }
</STYLE>
<DIV CLASS = "layout">
This is a block element containing a sentence of sample text.
</DIV>
See also
Send comments about this topic to Microsoft
Build date: 11/29/2012