Note: Enable the character and line grid modes or not. Syntax: element { layout-grid-mode: value } elementID.style.layoutGridMode = "value" document.all.elementID.style.layoutGridMode = "value"