multiple style through javascript code example
Example 1: how to add multiple styles in javascript
Object.assign(yourelement.style,{fontsize:"12px",left:"200px",top:"100px"});
Example 2: setting multiple css using dom
document.getElementById("myElement").style.cssText = "display: block; position: absolute";