PDA

View Full Version : CSS Drop down menu in IE problem..



mylah
24 Mar 2009, 08:41 AM
Hi,

I'm at my wit's end as a mac user with no Internet Explorer to test on. My client demands a 2 level drop down menu with hover features and I have it working perfectly on every other browser.. Trying to solve it with the whatever:hover script but I can't even test that. (Stuck in a very small town where everyone I know owns a mac)
Hard to work blind... Can someone please have a look at this page in IE (version 6 or above) and tell me if you see a drop down menu beneath the Workwear tab and if they look/function ok?

http://www.safety-wear.com.au/workwear-cat.html

I've uploaded the whatever:hover script to the server (not sure if i did that correctly either) and added the csshover.htc behaviour to the stylesheet as follows :




body {
color: #dedede;
font-size: 11px;
font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif;
background-color: #222222;
margin: 0;
background-position: left;
behaviour: url("csshover3.htc");
}


#menu {
width: 178px;
border-size: 1px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #696969;
font-size: 7pt;
font-family: "Myriad Pro", Verdana, Helvetica, "Sans Serif";
letter-spacing: 0.1em;
text-indent: 1pt;
font-style: normal;
margin-top: 40px;
margin-bottom: 0px;
margin-left: 0px;
text-align: right;
background-position: right top;
background-color: #343434;
border-right-color: #696969;
border-bottom-color: #696969;
border-left-color: #696969;
}

html>body #menu {
font-size: 8pt;
margin-left: -40px;
}

#menu ul{
list-style:none;
margin-top: 2px;
text-align: left;
padding: 0;
margin: 0;
list-style: none;
line-height: 1;
}

#menu li a {
height: 12px;
voice-family: "\"}\"";
voice-family: inherit;
height: 13px;
text-decoration: none;
font-weight:normal;
padding-bottom: 2pt;
padding-top: 3pt;
border-bottom-width: thin;
border-bottom-style: solid;
border-bottom-color: #222222;
border-right-color: #222222;
border-right-width: thin;
border-right-style: solid;
text-indent: 3px;
}

#menu li a:link, #menu li a:visited {
color: #FFFFFF;
display: block;
text-align: right;
}

#menu li a:hover {
color: #FFFFFF;
background-color: #252525;
background-image: url(images/arrowsw.gif);
background-repeat: no-repeat;
background-position: 2px center;
}

#menu li a:active {
background-color: #CC0000;
}


#menu li > ul {
top: auto;
right: auto;
}

#menu li:hover ul {
display: block;
clear: right
}

#menu li ul { /* second-level lists */
display : none;
position : relative;
left: -999em;
margin-left : 0em;
margin-top : 0em;
border-top-width: thin;
border-bottom-width: thin;
border-top-style: none;
border-bottom-style: none;
background-color: #5B5B5B;
border-right-width: thin;
border-left-width: thin;
border-right-style: none;
border-left-style: none;
}

#menu li ul ul { /* third-and-above-level lists */
left: -999em;
}

#menu li:hover ul ul, #menu li:hover ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul {
left: -999em;
}

#menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul { /* lists nested under hovered list items */
left: 0px;
}


Does this look ok?
(Apologies for the messy code. Haven't done any web design in quite some time & this was a rushed job for budget clients - I'm not up to date on CSS at all)

If anyone can direct me to a readily available IE emulator (not just the browser snapshots) I could use on a PPC mac that would also help me no end.

Would be so grateful for any advice. Thanks!