I've created a responsive menu with 100% width. Is it possible to have all same length for each menu item. At the moment the menu items with the more words have more width than the ones with less words. I hope this makes some sense. Heres my fiddle
My CSS:
nav {
margin: 0 auto;
text-align: center;
background: #fff;
height:70px;
width:100%;
}
nav ul {
width: 100%;
list-style: none;
margin: 0;
padding: 0;
display: table;
vertical-align: top;
background: rgba(148,148,149,1);
}
nav ul li {
display: table-cell;
margin: 0;
padding: 0;
}
nav ul li a {
display: block;
padding: 10px 7px;
color: #000;
text-decoration:none;
}
nav ul li~li { border-left: 1px solid #857D7A; }
nav .active a {
background: rgba(180,85,12,1);
color:#fff;
}
HTML:
<nav>
<ul>
<li class="active"><a href="#">Asdfsdfsd</a></li>
<li><a href="#">Pefsdfsfsdfsdf dgdgdfgo</a></li>
<li><a href="#">Hsdfsdfe</a> </li>
<li><a href="#">Csfsdfsdfsfs</a></li>
<li><a href="#">Visdfsdfcdsfdsfyy</a> </li>
</ul>
</nav>