Article

width

Specifies how wide an element is.

Overview

Use the width style to change the width of an element. Here's an example that sets the width of an img element to 250 points.

<img src="path to image" width="250" height="376" />

Values for width

Integer

The width of the element, in points. For example, width="200" sets the width of the element to 200 points.

Elements that Use width

See Also

Element Sizing

height

Specifies the height of an element.

max-height

Specifies the maximum height for an element.

max-width

Specifies the maximum width for an element.

min-height

Specifies the minimum height for an element.

min-width

Specifies the minimum width for an element.