<html>
<head>
<style>
.div1 {
max-width: 500px;
padding:10px;
background-color: powderblue;
}
.div2 {
width: 500px;
padding:10px;
background-color: powderblue;
}
</style>
</head>
<body>
<h2>Max-width vs. width of an element</h2>
<div class="div1">This div element has a max-width of 500px</div>
<br>
<div class="div2">This div element has a width of 500px.</div>
<p>Resize the browser window to smaller than 500 px wide to see the effect!</p>
</body>
</html>