<div class="container">
  <div class="element element-1">
    I have a maximum width of 450px. Even if my <code>width</code> is set to more than 450px, it will not have any effect since it will be overridden by the <code>max-width</code> value.
  <div class="element element-2">
    I will always have a maximum width which is equal to 5em.
body {
  background-color: #F5F5F5;
  color: #555;
  font-size: 1.1em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

.container {
  margin: 40px auto;
  max-width: 700px;

.element {
  padding: 20px;
  background-color: #0099cc;
  color: white;
  margin-bottom: 50px;

.element-1 {
  max-width: 450px;

.element-2 {
  max-width: 5em;