<section>
  <div>Texte</div>
  <div class="maxWidth">max-width:100px </div>
</section>
section{
  height: 55px;
  background-color: rgb(220,220,220);
}
div{
  width: 50%;
  height: 50%;
  background-color: pink;
}
div.maxWidth{
  max-width: 150px;
  height: 50%;
  background-color: orange;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.