neil_f
08-02-2010, 06:23 PM
Hi
I have (with some help through this forum) created a menu / sub-menu in HTML and CSS. Two of the main menu items have sub-menus.
The problem is that in Mozilla when only the main menu is displayed there is a gap after each main menu item that has a sub-menu. Those main menu items that don’t have a sub-menu have correct spacing to the next main menu item.
This is only a problem in Mozilla (I’m using 3.6.3).
I’ve included the CSS code below. I have messed around with various padding and margin properties setting them to zero but no luck.
Any help is much appreciated.
body {font-family: Arial, Helvetica, sans-serif;}
a:link {color:black; text-decoration:none;}
a:visited {color: black; text-decoration:none;}
a:hover {color: black; text-decoration:none; background: url(Images/ShiftPoint_menu.jpg) no-repeat;}
a img {border: 0;}
#menu ul {position: absolute; list-style: none; top:150px; left: 0px; width: 138px; padding: 0px; margin: 0px; text-align: left; font-size: 12px; font-weight: bold;}
#menu li {padding-left: 10px;}
#menu ul li a {padding-left:1.5em;}
#menu li ul {position: relative; top: 0px; left: 0px; font-size: 11px; font-weight: bold;}
I have (with some help through this forum) created a menu / sub-menu in HTML and CSS. Two of the main menu items have sub-menus.
The problem is that in Mozilla when only the main menu is displayed there is a gap after each main menu item that has a sub-menu. Those main menu items that don’t have a sub-menu have correct spacing to the next main menu item.
This is only a problem in Mozilla (I’m using 3.6.3).
I’ve included the CSS code below. I have messed around with various padding and margin properties setting them to zero but no luck.
Any help is much appreciated.
body {font-family: Arial, Helvetica, sans-serif;}
a:link {color:black; text-decoration:none;}
a:visited {color: black; text-decoration:none;}
a:hover {color: black; text-decoration:none; background: url(Images/ShiftPoint_menu.jpg) no-repeat;}
a img {border: 0;}
#menu ul {position: absolute; list-style: none; top:150px; left: 0px; width: 138px; padding: 0px; margin: 0px; text-align: left; font-size: 12px; font-weight: bold;}
#menu li {padding-left: 10px;}
#menu ul li a {padding-left:1.5em;}
#menu li ul {position: relative; top: 0px; left: 0px; font-size: 11px; font-weight: bold;}