Open main menu

CDOT Wiki β

Changes

CSS GUIDE MAX-HEIGHT

1,316 bytes added, 17:56, 13 December 2006
no edit summary
== Summary ==

This property allows a maximum height to be set for an element box. The calculation for the element's height may be less than this value, but if the calculated '''height''' value is above this value it will recompute the 'height' using the '''max-height''' value as the new 'height' value. If the value of [[CSS_GUIDE_MIN-HEIGHT|min-height]] is greater than the value of '''max-height''', the '''max-height''' property value becomes the [[CSS_GUIDE_MIN-HEIGHT|min-height]] value.

== Syntax ==

<pre>
h5 { max-height: length | percentage | none }
</pre>

== Legal Values ==

'''inherit'''
* Explicitly sets the value of this property to that of the parent.

'''none'''
* No limit is placed on the maximum allowable height for the element.

'''length'''
* Refers to an absolute measurement for the maximum computed element box height. Negative values are not allowed.

'''percentage'''
* Refers to a percentage of the height of the containing element block. If a height is not explicitly given for the containing block, it should be treated like 'auto'.

== Mozilla Recommended Values ==

== Usage Examples ==

<pre>
Ext/Doc: h5 { max-height: 150px }
In-Line: <h5 STYLE="max-height: 150px">text</h5>
</pre>

== Notes ==

== Specification Conformance ==

== Browser Compatibility ==

== See Also ==
1
edit