+ 4

How add styles for a div in javascript

please i need it https://www.sololearn.com/discuss/531645/?ref=app

12th Jul 2017, 9:31 PM
Victor Emmanuel Reina Liscano
Victor Emmanuel Reina Liscano - avatar
1 Answer
+ 15
element.style.cssproperty = "rule" Examples: div.style.margin = "10px"; div.style.border = "1px solid #555"; div.style.webkitTransform = "rotate(360deg)";
12th Jul 2017, 9:43 PM
Maz
Maz - avatar