strider
11-06-2008, 01:49 PM
I have a sons of suckerfish dropdown here http://viperdesign.co.uk/dev/ese/defaultcopy.asp and it works well in every browser except IE7 which makes the submenus appear too far to the right.
Here is my code:
#nav, #nav ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
float : left;
width : 147px; }
#nav li { /* all list items */
position : relative;
float : left;
line-height : 1.25em;
margin-bottom : -1px;
width: 147px; }
#nav li ul { /* second-level lists */
position : absolute;
left: -999em;
margin-left : 148px;
margin-top : -32px; }
#nav li ul ul { /* third-and-above-level lists */
left: -999em; margin-left:120px; border-left: 1px solid #e5e5e5; }
#nav li a {
width: 112px;
w\idth : 111px;
display : block;
color : #fff;
text-decoration : none; text-align:left;
background: #00466d url(images/arrow.gif) no-repeat 8px 8px;
padding-top: 9px; padding-bottom:9px; padding-left:35px;
border-top: 1px solid #e5e5e5; }
#nav li a:hover {
color: #ccc; background: #333 url(images/arrow.gif) no-repeat 10px 8px; }
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em; }
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */
left: 0; }
#content {
margin-left : 12em; }
/* VIPER MODS */
#nav li ul li a { background: #333; padding-left:8px; /*margin-left:-100px;*/ } /* Sub Menu style */
#nav li ul li a:hover { background: #333; color:#ccc; } /* Sub Menu hover */
.menutop { background-image:url(images/menu-top.gif); height:18px; margin-bottom:0; }
.menubase { background-image:url(images/menu-base.gif); height:18px; margin-top:1px; }
doctype is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Having been trying to fix this for days now and would really appreciate some help!
Thanks
Here is my code:
#nav, #nav ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
float : left;
width : 147px; }
#nav li { /* all list items */
position : relative;
float : left;
line-height : 1.25em;
margin-bottom : -1px;
width: 147px; }
#nav li ul { /* second-level lists */
position : absolute;
left: -999em;
margin-left : 148px;
margin-top : -32px; }
#nav li ul ul { /* third-and-above-level lists */
left: -999em; margin-left:120px; border-left: 1px solid #e5e5e5; }
#nav li a {
width: 112px;
w\idth : 111px;
display : block;
color : #fff;
text-decoration : none; text-align:left;
background: #00466d url(images/arrow.gif) no-repeat 8px 8px;
padding-top: 9px; padding-bottom:9px; padding-left:35px;
border-top: 1px solid #e5e5e5; }
#nav li a:hover {
color: #ccc; background: #333 url(images/arrow.gif) no-repeat 10px 8px; }
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em; }
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */
left: 0; }
#content {
margin-left : 12em; }
/* VIPER MODS */
#nav li ul li a { background: #333; padding-left:8px; /*margin-left:-100px;*/ } /* Sub Menu style */
#nav li ul li a:hover { background: #333; color:#ccc; } /* Sub Menu hover */
.menutop { background-image:url(images/menu-top.gif); height:18px; margin-bottom:0; }
.menubase { background-image:url(images/menu-base.gif); height:18px; margin-top:1px; }
doctype is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Having been trying to fix this for days now and would really appreciate some help!
Thanks