Assume the following HTML5 document:
<!doctype html> <html> <head><title>try</title> </head> <body> <h1>testing</h1> <ul id='ul_id'> <li id='li1_id'>one</li> <li id='li2_id'>somelongertwo</li> </ul> </body></html>
what will the CSS3 stylesheet be so that the width of the <ul id='ul_id'> element is the smallest to fit, so here will be the width <li id='li2_id'> plus its marker, since the second list element is the widest element <ul id='ul_id'> element?
I don’t want the width of my <ul id='ul_id'> to be as wide as the containing <body>
The context and motivation for this question is my optimization (almost minimization) of the width of the jqueryui menu .
source share