I have a menu of floated ul/li’s (the ), that is with changing width, but I would like to fill the complete width of the containing div.
the code:
#main-content ul.jwts_tabbernav {
display: block;
margin-bottom: 20px;
text-transform: uppercase;
text-align: center;
}
#main-content ul.jwts_tabbernav li a,
#main-content ul.jwts_tabbernav li a:link,
#main-content ul.jwts_tabbernav li a:hover {
background: none repeat scroll 0 0 transparent;
border: 1px solid #734C2F; outline: 1px solid #734C2F;
color: #734C2F;
font-size: 12pt;
font-weight: bold;
margin: 0;
padding: 3px 35px;
}
the development pages (with two different menu widths):
http://www.kaplareva.com/polarinvest/?p=224
http://www.kaplareva.com/polarinvest/?p=227
Any idea how this could be solved?
The following changes will make the list-items expand to fill the container.
The one caveat is that display:table-cell and display:table are not supported natively in IE6/7 so if you need to support those browsers then you will need another solution. With IE6 usage down to just 7.1% and IE7 usage at 2.54%, I know fewer and fewer designers are supporting them.