Note: Set layout-grid-type Syntax: element { layout-grid-type: value } elementID.style.layoutGridType = "value" document.all.elementID.style.layoutGridType = "value"