min-height

The min-height property constrains the height of an element to a minimum range.

CSS2

Syntax

min-height: <length> | <percentage> | inherit
Initial: 0
Applies To: all elements but non-replaced inline elements, table columns, and column groups
Inherited: no
Percentages: refer to height of containing block
Media: visual

Values

min-height: value
Value Description
length Fixed minimum height
percentage Height percentage calculated with respect to the height of the containing block

DOM

[window.]document.getElementById("element-id").style.minHeight = "min-height";

Example | length

Example | percentage

Example | DOM

External

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification