HTML 4.0 Logo Reader Icon OEB 1.0 Logo PPC Logo width

This attribute specifies the width of the table cell, image, or table header; the image or table is scaled to that width in pixels. Generally used in combination with the height attribute. If image width is used without specifying the height attribute, the height is changed so that the image's aspect ratio is maintained.

Note that this attribute defines an image with respect to the active page area (or containing table-cell size) when a percentage is used, not with respect to the original image size. Content authors should specify widths in terms of percentages of relevant page margins.

Syntax

width="pixels|percentage%"

Associated Tags

img, td, th, table

© 2000 Microsoft Corporation. All rights reserved. Terms of use.