title: style ul with width to accommodate items
body: <p>Sorry I could not find a similar answer on SO. I have the following markup (generated by jquery ui autocomplete but this is not the issue here)</p>
  
  <pre><code>&lt;ul style="z-index: 1; display: block; border: thin solid red; width: 200px;"&gt;
  &lt;li&gt;
  &lt;a&gt;
    &lt;div style="font-size: 0.85em;"&gt;
      &lt;span style="float: right; padding-left: 10px; color: gray;"&gt;
        United Kingdom
      &lt;/span&gt;
      &lt;span style=""&gt;text text text text text&lt;/span&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>As you can see in this fiddle: <a href="http://jsfiddle.net/fVr8P/2/" rel="nofollow">http://jsfiddle.net/fVr8P/2/</a> the text wraps because the width is limited and the country span is "floating". What I would like would be for the width to enlarge to accommodate the full length, but if I put <code>width: auto;</code> it will expand to 100%.</p>
  
  <p><strong>Background</strong></p>
  
  <p>The ul is of course coming from jquery ui autocomplete. I am styling the results a bit using the autocomplete.html extension. Problem is that everything is working ok in firefox an chrome because the autocomplete is set to the correct width on creation. in IE this does not happen (width is too small) so the text wraps. I am hping to come to a simple css only solution, without fiddling around in jQuery.</p>