For the main nav of my site, there is a 980px wide div with a ul for the main nav links. I am trying to make the nav links stretch to fit the width of the div evenly.
inelegant (but effective) way: use percentages
#horizontal-style {
width: 100%;
}
li {
width: 20%;
}
This only works with the 5 example. For more or less, modify your percentage accordingly. If you have other
s on your page, you can always assign these particular ones a class of "menu-li" so that only they are affected.