Modifier Le code:
Voir Résultat »
Essayez-le vous-même - ©
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!