XML technologies / CSS / Advanced websites with CSS / CSS property reference / layout-grid
(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 shorthand property layout-grid is not part of the CSS standard and declares the properties layout-grid-char, layout-grid-line, layout-grid-mode and layout-grid-type in a single instruction.
Inherited: Yes
See also: layout-grid-char, layout-grid-line, layout-grid-mode and layout-grid-type
Values
The syntax of the property layout-grid is as follows. Values are separated by spaces:
layout-grid: [mode] [type] [line [char]]
Values in square brackets are optional and mean the following:
moderepresents a valid value forlayout-grid-modetyperepresents a valid value forlayout-grid-typelinerepresents a valid value forlayout-grid-linecharrepresents a valid value forlayout-grid-char
Default value: both loose none none
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
A simple example of using layout-grid:
div {
layout-grid: both fixed 12px 12px;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg