title: Div Scaling in Multi-Level Dropdown
body: <p>i am trying to scale a div Container in a dropdown menu, so that it fits the text inside better.</p>
  
  <pre><code>&lt;div class='dropdown'&gt;
      &lt;button class ="dropbtn"&gt;&lt;b&gt;Hover!&lt;/b&gt;&lt;/button&gt;
      &lt;div class='dropdown-content'&gt;
          &lt;div class='dropdown-level2'&gt;
              &lt;button class ="dropbtn-level2"&gt;&lt;b&gt;"..."&lt;/b&gt;&lt;/button&gt;
              &lt;div class='dropdown-content-level2'&gt;
                  &lt;a&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>See: <a href="http://codepen.io/anon/pen/BLvxwY" rel="nofollow">http://codepen.io/anon/pen/BLvxwY</a></p>
  
  <p>Of course i could just set a min-width, however the content is dynamically generated. Thus a text shorter than the min-width can occur.</p>
  
  <p>How can i scale the div accordingly?</p>
  
  <p>Thanks</p>