I made an inline-block list style main menu navigation bar with background images and static dimensions, but the problem is that there's a little space between each of the buttons on right and left.
I don't see any padding or margin styling in my css below. How can I fix this so the buttons stick to each other?
HTML:
CSS:Code:<div id="menu"> <ul> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> </div>
Code:#menu ul li{ display: inline-block; margin-bottom: 0px; } #menu ul li a{ padding-top: 7px; /* to center link text vertically */ width: 120px; height: 41px; float: left; text-decoration: none; color: #FFF; background:url(image/bt1.gif) no-repeat right top; } #menu ul li a:hover { background:url(image/bt2.gif) no-repeat right top; }


Reply With Quote
Bookmarks