You are here : cssCSS 3max-height

max-height - CSS 3

The max-height property is used to set the maximum height of an element.This prevents the value of the height property from becoming larger than 
max-height.Note: The value of the max-height property overrides
height.


Syntax

max-height: none|length|initial|inherit;


Example

p
	{
	   
	max-height: 50px;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference