You are here : cssCSS 3max-width

max-width - CSS 3

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


Syntax

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


Example

p
	{
	   
	max-width: 100px;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference