We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Esta tradução está incompleta. Por favor, ajude a traduzir este artigo.


A propriedade min-height do CSS é usado para definir a altura mínima de um determinado elemento. Ele impede que o valor usado da propriedade height se torne menor que o valor especificado para min-height.
O valor de  min-height substitui os dois max-height e height.

Initial value0
Aplica-se aall elements but non-replaced inline elements, table columns, and column groups
PercentagesThe percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as 0.
Computed valuethe percentage as specified or the absolute length
Animation typea length, percentage or calc();
Canonical orderthe unique non-ambiguous order defined by the formal grammar


sintaxe forma: <length> | <percentage> | auto | max-content | min-content | fit-content | fill-available
min-height: 3.5em
min-height: 10%
min-height: max-content
min-height: min-content
min-height: fit-content
min-height: fill-available

min-height: inherit


O valor fixo mínimo da altura. Veja <length> para possíveis unidades. Valores negativos fazem da declaração inválida.
O valor fixo mínimo da altura expressado como uma <percentage> do conteúdo da altura do bloco. Valores negativos fazem da declaração inválida.
The intrinsic preferred height.
The intrinsic minimum height.
The containing block height minus horizontal margin, border and padding. Some browsers implement an ancient name for this keyword, available.
According CSS3 Box, this is a synonym of min-content. CSS3 Sizing defines a more complex algorithm, but no browser implements it, even in an experimental way.


table { min-height: 75%; }

form { min-height: 0; }


Especificação Status Comentário
CSS Intrinsic & Extrinsic Sizing Module Level 3
The definition of 'min-height' in that specification.
Rascunho atual Adds the max-content, min-content, fit-content, and fill-available keywords.
Both CSS3 Box and CSS3 Writing Modes drafts defined at some point these keywords. These drafts are superseded by this spec.
CSS Flexible Box Layout Module
The definition of 'min-height' in that specification.
Candidata a Recomendação An earlier revision of the spec added the auto keyword and used it as the initial value. The CSSWG subsequently resolved to revert this change, however. As of March 29, 2013, the latest Editor's Draft doesn't modify the min-width property anymore (i.e. it no longer introduces the auto value).
CSS Transitions
The definition of 'min-height' in that specification.
Rascunho atual Defines min-height as animatable.
CSS Level 2 (Revision 1)
The definition of 'min-height' in that specification.
Recomendação Initial definition.

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 3.0 (1.9) 7.0 4.0 1.0
2.0.2 (416) for positioned elements
applies to <table> [1] Não suportado (Yes) Não suportado (Yes) Não suportado
max-content, min-content, fit-content, and fill-available Não suportado Não suportado Não suportado Não suportado Não suportado
autoObsolete since Gecko 22 21.0 16.0 (16.0) Não suportado 12.10 Não suportado
auto as initial valueObsolete since Gecko 22 21.0 18.0 (18.0) Não suportado 12.10 Não suportado
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? ? ? ? ?


[1] CSS 2.1 explicitly leaves the behavior of min-height with <table> undefined. Therefore any behavior is CSS2.1-compliant; newer CSS specifications may define this behavior, so Web developers shouldn't rely on a specific one now.

[2] Due to bug (bug 307866) Firefox doesn't hande min-height on elements with display: table-*.

Ver também

Etiquetas do documento e colaboradores

Colaboradores desta página: JulianoPadilha, Sebastianz, LeonardoMax
Última atualização por: JulianoPadilha,