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

(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-type is not part of the CSS standard and specifies the character type for which a grid is created.

Inherited: Yes

See also: layout-grid and layout-grid-mode

Values

One of the following constants:

  • fixed

  • loose

  • strict

Default value: loose

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 gives span elements with the attribute lang="jp" a layout grid of type strict:

span[lang=jp] {
 layout-grid-type: strict;
}

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

  

 

 

 

back to top