JS - DOM CSS customization

0 votes
130 views
added Jul 3, 2019 in Javascript by LC Marshal Captain (25,790 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";

 

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