Gets the maximum height for an element.
HRESULT IHTMLCurrentStyle4::get_maxHeight(VARIANT *p);
- Pointer to a variable of type VARIANT of type VT_BSTR that receives the maximum height for an element.
length Floating-point number followed by an absolute units designator (
pc) or a relative units designator (
px). For more information about the supported length units, see CSS Length Units.
percentage Integer followed by a % that specifies a percentage of the containing block height to use as the maximum height of the element. If the height of the containing block is not explicitly set, then the element has no maximum height and the IHTMLCurrentStyle4::maxHeight property is interpreted as 0%. For more information on containing blocks and how their heights are computed, see the Cascading Style Sheets, Level 2.1 (CSS2.1) specification.
Returns S_OK if successful, or an error value otherwise.
IHTMLCurrentStyle4::maxHeight was introduced in Windows Internet Explorer 7.
The min-height/ max-height attributes apply to floating and absolutely positioned block and inline-block elements, as well as some intrinsic controls. They do not apply to non-replaced inline elements, such as table columns and row/column groups. (A "replaced" element has intrinsic dimensions, such as an img or textArea.)
This property is enabled only under the strict !DOCTYPE.