So, let's say I have a div that's 780px wide, with 6 list items in it.
These list items can range anywhere from 10px to 130px wide.
I'd like for the list items to use up the entire 780px and space them out evenly with margin (automatically of course).
I've tried table, but it didn't keep the list items original width.
html
<ul class="foo">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>
css
.foo{
display:table;
table-layout:fixed;
}
.foo li{
padding:5px;
display:table-cell;
}