Answers for "how to change width on element dom js"

7

javascript set element width

document.getElementById("myElID").style.width = "100px";
Posted by: Guest on October-26-2019
0

Write the JavaScript code to set the width of element to 50%;

document.getElementById('header').style.width = '50%';
Posted by: Guest on January-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language