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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access