+ 4
How add styles for a div in javascript
please i need it https://www.sololearn.com/discuss/531645/?ref=app
1 Answer
+ 15
element.style.cssproperty = "rule"
Examples:
div.style.margin = "10px";
div.style.border = "1px solid #555";
div.style.webkitTransform = "rotate(360deg)";