Edit This Code:
See Result »
Set max-width of an Element:
This div element has a height of 100px and a max-width of 500px. Resize the browser window to see the effect.
Result: