You are here: Reference > JavaScript > client-side > style handling > properties > layoutGridLine

layoutGridLine style property

Browser support:
Specifies or returns the gridline value used for laying out Japanese or Chinese characters in a web document.
It has effect only if the layoutGridMode property is set to line or both, and only applies to block elements.


You can find the related objects in the Supported by objects section below.
This property is read/write.
CSS page for this property: layout-grid-line

Possible values:

The type of this property is string.
 One of the following values: 
Character grid is to be dependent on the largest character.
height in non-negative length
The height of the gridline in length units. For the supported length units, see the length page.
height in non-negative percentage
The height of the gridline is the specified percentage of the height of the parent element.
Default. No grid line is drawn.
Default: none.

Example HTML code 1:

This example illustrates the use of the layout-grid-line property:
        .example {
            layout-grid-line: 15px;
    <div class="example">
        layout-grid-line: 15px 
        <br />
        between these two lines
Did you find this example helpful? yes no

Example HTML code 2:

This example illustrates the use of the layoutGridLine property in JavaScript:
    <script type="text/javascript">
        function ChangeLayout (selectTag) {
            // Returns the index of the selected option
            var whichSelected = selectTag.selectedIndex;

            // Returns the selected options values
            var layoutValue = selectTag.options[whichSelected].text;

            var div = document.getElementById ("myDiv");

            if ('layoutGridLine' in {
       = layoutValue;
            } else {
                alert ("Your browser doesn't support this example!");
    <div id="myDiv">Change the value of the <br />layout-grid-line property</div>

    <br />
    <select onchange="ChangeLayout (this);" size="7">
        <option />5px
        <option />25px
        <option />40px
        <option />60px
        <option />70px
        <option />auto
        <option selected="selected" />none
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content