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

JS - DOM CSS customization

0 votes
added Jul 3, 2019 in Javascript by LC Marshal Captain (25,800 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. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.