You are here: Reference > CSS > properties > layout-grid

layout-grid property

Browser support:
Specifies up to four separate layout-grid properties that specify the layout of text characters.
If you want to display characters that use a one or two-dimensional grid layout, such as Chinese and Japanese, you can use the layout-grid property to display them properly in web pages.
JavaScript page for this property: layoutGrid. You can find other example(s) there.

Possible values:

 Values in this order (use the space character to separate them): 
1.
<layout-grid-mode> possible but not necessary; left to personal choice
2.
<layout-grid-type> possible but not necessary; left to personal choice
3.
 Values in this order (use the space character to separate them): 
1. <layout-grid-line>
2.
<layout-grid-char> possible but not necessary; left to personal choice
possible but not necessary; left to personal choice

Description of values:

layout-grid-char
Specifies the size of the character grid for the layout of an element's text content.
layout-grid-line
Specifies the gridline value used for laying out Japanese or Chinese characters in a web document.
layout-grid-mode
Specifies whether the text layout grid uses one or two dimensions.
layout-grid-type
Specifies the type of grid to be used for laying out Japanese or Chinese characters in a web document.
Default: both loose none none.

Example HTML code 1:

This example illustrates the use of the layout-grid property:
<head>
    <style>
        .example {
            layout-grid: both fixed 15px 15px;
        }
    </style>
</head>
<body>
    <div class="example">layout-grid: both fixed 15px 15px</div>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content