I am attempting to adjust the size of a div container within a dropdown menu so that it properly accommodates the text inside.
<div class='dropdown'>
<button class ="dropbtn"><b>Hover!</b></button>
<div class='dropdown-content'>
<div class='dropdown-level2'>
<button class ="dropbtn-level2"><b>"..."</b></button>
<div class='dropdown-content-level2'>
<a>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.</a>
</div>
</div>
</div>
</div>
Check it out here: http://codepen.io/anon/pen/BLvxwY
While I could simply set a minimum width, the content is generated dynamically, leading to instances where the text may be shorter than the minimum width requirement.
Any suggestions on how to scale the div accordingly would be greatly appreciated!
Thank you