CSS max-width 속성

by JM note

HTML

<style>
  h1 {
    max-width: 400px;
    background: red;
  }
</style>

<h1>안녕</h1>