title: How can I make a divs and h1 adjust in width but act as block to go on a new line
body: <p>I have 3 divs each with a different h element inside. How can I make the h elements adjust in width and not act like a block element? How can I make the enclosing div adjust with the width but act as block element in the sense of each one taking a new line.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>    .film-container {
         max-width: 70%
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;div class="film-container"&gt;
         &lt;a class="film-item" href="/blog-post"&gt;
            &lt;div class="film-title"&gt;
               &lt;h1 class="film-list-title"&gt;Title&lt;/h1&gt;
            &lt;/div&gt;
            &lt;div class="film-intro"&gt;
                &lt;h2&gt;Intro&lt;/h2&gt;
            &lt;/div&gt;
            &lt;div class="film-completed-date"&gt;
                &lt;h3&gt;dd-mm-Y&lt;/h3&gt;
            &lt;/div&gt;
         &lt;/a&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>