I'm struggling to figure out how to design a CSS toolbar. My goal is to create a 22x22 button toolbar with 4 buttons.
I have this PNG image: and the following code:
<style>
#nav {background: url(content/images/crtoolbar.png) no-repeat;height: 22px;width: 88px;}
#nav span {display: none;}
#nav li {list-style-type: none;float: left;width: 22px;}
#nav a {height: 22px;display: block;}
</style>
<ul id="nav">
<li id="b1"><a href="#"><span>b1</span></a></li>
<li id="b2"><a href="#"><span>b2</span></a></li>
<li id="b3"><a href="#"><span>b3</span></a></li>
<li id="b4"><a href="#"><span>b4</span></a></li>
</ul>
The bitmap displays correctly, but I am having trouble getting the selection/hrefs to align properly. They are offset to the left by about 2 buttons and I can't seem to adjust them.
Thanks in advance!