multiple css rules javascript code example
Example: setting multiple styles in javascript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
document.getElementById("myElement").style.cssText = "display: block; position: absolute";