Is it possible to set width or height of HTML element (ex. Note the following code:
Try declaring the unit of width:
e1.style.width = "400px"; // width in PIXELS
The style property lets you specify values for CSS properties.
The CSS width property takes a length as its value.
Lengths require units. In quirks mode, browsers tend to assume pixels if provided with an integer instead of a length. Specify units.
e1.style.width = "400px";