XML technologies / CSS / Advanced websites with CSS / CSS property reference / layout-grid-mode

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

East Asian languages require characters to be arranged in a grid. The property layout-grid-mode is not part of the CSS standard and specifies whether an element’s contents use a character grid, a line grid or both.

Inherited: Yes

See also: layout-grid, layout-grid-char and layout-grid-line

Values

One of the following constants:

  • both

  • char

  • line

  • none

Default value: both

Compatibility

CSS version: not part of the CSS standard

Works only in Internet Explorer for Windows from version 5.

Corresponding functionality is planned for CSS3, although the final property and value names will probably differ. Current information is available on the CSS Working Group website.

Example

The following rule displays all span elements with the attribute lang="jp" in a 12-point character grid without changing line spacing:

span[lang=jp] {
 layout-grid-mode: char;
 layout-grid-char: 12pt;
}

Note that this rule does not work, because Internet Explorer currently does not support distinctions based on attributes.

  

 

 

 

back to top