Originally I was going to generate the menu items dynamically through wordpress, but I probably don't need to do that as it they wont change (although there will be nested menu items within these that will be dynamically created). I have 7 menu items of differing size and at the moment the CSS uses fixed margins which I worked out through trial and error, but I want it to be able to space itself evenly through some sort of logical css if possible.
My problem with fixed margins etc is that the font I just tried to use (Century Gothic) renders slightly differently in different browsers and in some cases knocks the last menu item out of the nav bar with the existing CSS fixed margins. I thought that potentially I could somehow use "dummy" <li></li>'s inbetween the proper menu items with some sort of percentage based CSS margin but I haven't quite nailed it, which could of course be because it's a stupid idea in the 1sr place. I don't know?
The html:
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Applications</a></li>
<li><a href="#">What's Wood Wool?</a></li>
<li><a href="#">The Eco Bit</a></li>
<li><a href="#">Get In Touch</a></li>
<li><a href="#">Blog</a></li>
</ul>
</nav>
The CSS:
header nav {
background-image: url(../_images/nav-bar-bg.png);
height: 48px;
width: 960px;
position: absolute;
top: 96px;
}
header nav>ul {
height: 48px;
width: 960px;
}
header nav ul li {
float: left;
line-height: 48px;
font-size: 1.6em;
width: auto;
margin-right: 30px;
margin-left: 30px;
}
header nav ul li a {
text-align:center;
color: #FFF;
display:block;
}
header nav ul li a:hover {
color: #09b497;
}
Here's a link to the site I'm working on for visual reference
Help
















