B.45. height

This property sets the height of the contents of a block or replaced[6] element. This height does not include padding, borders, or margins.

[6] A replaced element is any element whose appearance and dimensions are defined by an external resource. Examples include images (img tags), plug-ins (object tags), and form fields (input and select tags). Another way to think of replaced elements is any element that can be displayed inline with text and that acts as a single, big character for the purposes of wrapping and layout.

If the contents of a block require more vertical space than the height you assign, the behavior is defined by the overflow property.

Inherited: No

See also: Section B.67max-height, Section B.67min-height, Section ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.