This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

width (img, input elements)

Applies to ?
## Examples

This example sets the width of the image to 20 pixels regardless of the original size of the image.

<IMG SRC="large.png" WIDTH="20">

Notes

Remarks

If you specify the width property of an img, but not the height property, the resulting height of the img is sized proportionally to the specified width property and the actual height, in pixels, of the source image file. Consider the following example: {

Syntax

See also

Related pages

  • img
  • input type=button
  • input type=checkbox
  • input type=file
  • input type=image
  • input type=password
  • input type=radio
  • input type=reset
  • input type=submit
  • input type=text

Attributions