title: Make the width of outer div to fit inner divs automatically
body: <p>I have 2 inner divs inside an outer div, and I want to make the outer div to automatically fit to the width of the inner divs. Is that possible?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    font-size: 0;
  }
  #outer {
    border: 1px solid black;
  }
  .inner {
    font-size: 12px;
    display: inline-block;
    border: 1px solid red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id='outer'&gt;
    &lt;div class='inner'&gt;text1&lt;/div&gt;
    &lt;div class='inner'&gt;text2&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>