Answers for "javascript set several styles"

CSS
1

javascript style multiple properties

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

setting multiple styles in javascript

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

Browse Popular Code Answers by Language