I have a type of navigation that is contained within a 'pill
' of sorts.
I need the pill
(surrounding container) to automatically resize based on the amount of elements in the navigation.
I have the pill
container centered on the page, so I don't think a float: left;
or float: right;
will work because it will override the margin: 0 auto;
.
Here is a fiddle with an example of my issue: http://jsfiddle.net/TylerB/EU6XG/1/
How can I set this div element's width based on the amount of navigation items in the list?