Answers for "how to add multiple styles in javascript"

0

set multiple attributes css javascript

document.getElementById("myElement").style.cssText = "display: block; position: absolute";
Posted by: Guest on August-03-2020
0

setting multiple css using dom

document.getElementById("myElement").style.cssText = "display: block; position: absolute";
Posted by: Guest on November-07-2020
0

how to add multiple styles in javascript

Object.assign(yourelement.style,{fontsize:"12px",left:"200px",top:"100px"});
Posted by: Guest on September-02-2020

Code answers related to "how to add multiple styles in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language