Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

JS - DOM CSS customization

0 votes
17 views
added Jul 3 in Javascript by LC Marshal Captain (25,420 points)
// CSS color
document.getElementById('change-color').style.color = "#333333";

//CSS font family
document.getElementById("change-color").style.fontFamily = "Georgia";

//CSS font size
document.getElementById("change-color").style.fontSize = "3rem";

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...