HomeReferencesCSS Properties

CSS Property: width

Specifies the width of a block box (not including padding, border or margin). Note: Internet Explorer 5.x will interpret the height as being inclusive of padding. Accommodating IE 5.x can be achieved by using the box model hack.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • [percentage]
  • [length]
  • inherit
  • auto

Example


#jelly { width: 212px; }