title: How to autosize a div?
body: <p>I have a short question on how to autosize a div class.</p>
  
  <p>I have some error messages that i would like to echo out. for this errormessages i have a div class:</p>
  
  <pre><code>.wrapper form .error {
      color: #ccc;
      position: absolute;
      z-index: 2;
      background-color:#fff;
      height: 26px;
      line-height: 26px;
      padding: 10px; 
      border: solid #ccc;
      border-width: 1px 1px 1px 1px;
      width: 200px; /*should be auto but doesnt work*/
      line-height: 26px;
      right: 100%;
      top: 7%;
  } 
  </code></pre>
  
  <p>I would like to achieve that my different error message with different string lengths will be display in one line without breaks and the width of this div should be automatically sized depending from the length of the strings.</p>