HomeReferencesCSS Properties

CSS Property: height

Specifies the height of a block box (not including padding, border or margin). Note: IE will treat height similarly to min-height - content will push the height of a box higher if it does not fit in the specified height. 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 (default)

Example


#pickle {
	padding: 1em;
	height: 3em;
}