I have a List that I'm using as a list of tabs:
<div id="SearchForm">
<ul class="TabControl">
<li>
<a href="/search/Funds">Funds (60)</a>
</li>
<li>
<a href="/search/Companies">Companies (4)</a>
</li>
<li>
<a href="/search/Groups">Groups (1)</a>
</li>
<li>
<a href="/search/Categories">Categories (0)</a>
</li>
<li>
<a href="/search/Categories">Identifiers (60)</a>
</li>
</ul>
</div>
where the CSS is defined as follows:
#SearchForm ul {
list-style: none;
padding:0;
margin: 15px 0 5px 0;
}
#SearchForm li {
display: inline;
background-color: #F6E9D8;
margin: 12px 6px 0 0;
padding: 6px 0 6px 0;
}
#SearchForm li a {
padding: 0 20px;
}
This list only takes up about 90% of the width available to it on the page, where everything else in the page takes up 100% of the width because they're laid out in divs. The space avaiable to them is defined in an element supplied by the client at
width: 62.1em
Basically what I need is to get the tabs to be distributed evenly so they fill the entire width available to them, with the text/link aligned in the middle of each tab? Is there a way for me to do this?