I'm making a navigation menu and have run into the common problem of needing to horizontally align a UL with equal spacing around each list item. However, this list is inside of a div set to a width of 1100px and I need there to be no space on the left or right-hand sides of the div -- the first and last list items need to reach their side of the div.
Here's the unordered list as I have it right now:
ul{
width:100%;
display:table;
list-style-type:none;
padding:0;
border-spacing:5px;
li{
display:table-cell;
padding:0 30px;
}
}
And as I said, this unordered list is inside of another div which has its width set to 1100px. What should I do to make the list stretch the full width of the div?