CSS max-width property
Usage
Specifies a maximum width for an element. Not supported by Internet Explorer.
Values
- [length] - specifies an exact maximum width
- [percentage] - specifies the maximum width as a percentage of the width of the containing element
Example
Code:
div {
max-width: 300px;
}