Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
This div element has width: 500px;
This div element has max-width: 500px;
Tip:
Drag the browser window to smaller than 500px wide, to see the difference between the two divs!