I am using a menu adapted from cssplay.co.uk, which is fine, but I want to add a coloured border around it, so I am nesting a div with a border. This works fine in Opera & IE6 (havnt tested IE7 yet as my XP box went up in smoke this week!) but in Firefox 2.0.0.9 there is a space at the bottom and I just cant see why ... I have setup a test page with 2 example menus Click here for example ..any ideas what could be causing this prob ?
Many Thanks
Chris
Code snip
Expand|Select|Wrap|Line Numbers
- <div id="menu-main">
- <div id="menu-main-border">
- <ul>
- <li id="current"><a href="index.html"><span>Home</span></a></li>
- <li><a href="products.html"><span>Products</span></a></li>
- <li><a href="services.html"><span>Services</span></a></li>
- <li><a href="contact.html"><span>Contact</span></a></li>
- </ul>
- </div>
- </div>
#menu-main {
position: relative;
font-size:13px;
line-height:normal;
margin:0px;
padding:0px;
}
#menu-main-border {
position: absolute;
border-color: #8CAAE7;
border-width: 7px;
border-style: solid;
margin:0px;
padding:0px;
}
#menu-main ul {
/*height:20px; */
margin:0px;
padding:0px;
list-style: none;
}
#menu-main li {
display:inline;
margin:0px;
padding:0px;
}
#menu-main a {
float:left;
background:url("ddmenu/tableft.gif") no-repeat left top;
margin:0px;
padding: 0px 0px 0px 10px;
text-decoration:none;
}
#menu-main a span {
float:left;
display:block;
background:url("ddmenu/tabright.gif") no-repeat right top;
padding:5px 15px 4px 6px;
color:#666;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#menu-main a span {float:none;}
/* End IE5-Mac hack */
#menu-main a:hover span {
color:#fff;
}
#menu-main a:hover {
background-position:0% -42px;
}
#menu-main a:hover span {
background-position:100% -42px;
}
#menu-main #current a {
background-position:0% -42px;
}
#menu-main #current a span {
background-position:100% -42px;
}