width

LANSA WAM

width

Specifies the width of the input in pixels. This property is only valid when type="image".

Tip: Always specify both the height and width properties for images. If height and width are set, the space required for the image is reserved when the page is loaded. However, without these properties, the browser does not know the size of the image, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the images load).

Default value

Blank - the browser will calculate the width after it loads the image.

Valid values

Any integer value.