title: Have a div match the contents width in CSS
body: <p>I have the html set up below. Inside <code>inner_container</code> there can be content that can have a width of <code>500px</code> to <code>50000px</code>. How might I set up the style so that <code>inner_container</code> matches the exact width of the contents width?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="main_container" class="main"&gt;
    &lt;div id="scrollable_container" style="overflow: scroll; width: 9000px; height: 700px"&gt;
      &lt;div class="inner_container" style="width: 12000px"&gt;
        &lt;!-- Content here can be any widths... from small to reall large --&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;  </code></pre>
  </div>
  </div>
  </p>