954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

menu hover gap problem in firefox

i worked a horizontal menu in my project. when hovering the ling\k the background image will change.the output looks perfect in all browsers even in IE6 except firefox.when hovering the last link a small gap appears.here my code.

CSS :
.menu_holder {
width:1000px;
height:40px;
background-image:url(../images/menu_normal_govind.jpg);
background-repeat:repeat-x;

}
.menu {
margin:0px;
padding:0px;
}

.menu li {
list-style-type:none;
float:left;
display:block;
background-image:url(../images/menu_divi_govind.jpg);
background-repeat:no-repeat;
background-position:right;
padding-right:2px;
}
.menu li a {
padding-left:35px;
padding-right:35px;
display:block;
color:#FFF;
line-height:39px;
background-image:url(../images/menu_normal_govind.jpg);
background-repeat:repeat-x;


}
.menu li a:hover {
background-image:url(../images/menu_hover_govind.jpg);
background-repeat:repeat-x;
padding-left:35px;
padding-right:35px;
display:block;
color:#FFF;
line-height:39px;
}


HTML :

can anyone tell me the solution?

rangaraj4u
Newbie Poster
2 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

try with line-height to 40.
Use code tags to post your code.

Karthik_pranas
Posting Pro
564 posts since Feb 2011
Reputation Points: 96
Solved Threads: 97
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: