title: CSS: I can't set width to "auto" always appear 100%
body: <p>for some reason </p>
  
  <p>the width of the div is 100% and if i set it to auto, nothing changes. tried <code>display: block;</code> and still nothing.</p>
  
  <p>what I have in 
  <code>index.html</code></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>.box {
    border: 1px solid #555;
    display: block;
    width: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;head&gt;
    &lt;title&gt;project x&lt;/title&gt;
    &lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div class='box'&gt;This is a box&lt;/div&gt;
    &lt;div class='box'&gt;This is another box&lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I enjoy cracking problems but this one crack me.</p>
  
  <h1>Edit</h1>
  
  <p>I want the div to take the width of the words. I don't want it to be 100%.</p>