I have this structure. A div that has 2 other divs inside of it
<div id='main'>
<div id='1>
Text I want to have overflowo: hidden
</div>
<div id='2'>
Text that I want do decide the width of main div
</div>
</div>
If the text in div 2 overflows I want the main div to expand, but if the text in div 1 overflows the max-width specified I want the main div to remain the same width
Not sure if this is possible using just css
I may have oversimplified the example at the top. Not dealing with pure text.
Want the bottom part with the buttons drive the width but if there is something in the list that is too long it will get clipped.