Hi Paul -
Afraid I've got another quick question about using one of your menus with a custom id. 
I'm testing out the "Drop Down vertical menu based on Suckerfish Menus"
http://www.pmob.co.uk/temp/ddusa.htm
Instead of
I'm starting off the menu with
and trying to ensure the ul & li definitions are customised just for the vertical menu, so as to not interfere with the use of ul & li elsewhere on the page.
I've tried to set up the following to imitate your previous correction for a different menu, but doesn't quite seem to be working. Main issue is that the menus just aren't expanding.
Still trying to find my feet with CSS, but if I'm doing anything obviously wrong a pointer would be much appreciated.
Code:
ul#menu {
margin: 0;
padding: 0;
list-style: none;
width:180px
}
ul#menu li {
position: relative;
width:148px;
border: 1px solid #ccc;
}
/* keep folowing styles together..........................*/
* html ul#menu ul {
margin-left:-16px;/* ie5 fix */
voice-family: "\"}\"";
voice-family: inherit;
}
* html ul#menu li {float:left;/* hide float from ie5*/}
* html ul#menu ul {
width:180px;
w\idth:148px;
voice-family: "\"}\"";
voice-family: inherit;
}
* html ul#menu ul {margin-left:0;/* hide margin from ie5*/}
/* keep above styles together .............*/
#menu li ul {
position: relative;
display:none;
}
#menu li ul li {
width:149px;
border-left:8px solid blue
}
/* Styles for Menu Items */
ul#menu li a {
display:block;
text-decoration: none;
color: #fff;
background: #808080; /* IE6 Bug */
line-height:2em;
height:2em;
padding:0 5px
}
#menu li li a {background:#800000}
/* set dropdown to default */
#menu li:hover li a,#menu li.over li a {
color: #fff;
background-color: #c0c0c0;
}
/* this sets all hovered lists to red */
#menu li a:hover,
#menu li:hover a,#menu li.over a,
#menu li:hover li a:hover,#menu li.over li a:hover {
color: #000;
background-color: fcfcfc;
}
#menu li ul li { } /* Sub Menu Styles */
#menu li.on ul { display:block !important } /* The magic */
#menu li.off ul{display:none !important}
#menu li.on a{color:blue;font-weight:bold}/* set colour of selected item*/
#menu li.on ul a{background:#f2f2f2;color:#777;font-weight:normal}/* keep nested anchors original colour*/
body#services #menu li#xxservices ul{display:block} /* open chosen menu */
body#services #menu li#xxservices a{background:pink} /* set background color of list item's anchor*/
body#services #menu li#xxservices ul a{background:#f2f2f2}/* stop above from applying to nested links*/
body#services #menu li#xxservices ul a:hover{background:red}
body#services.host #menu li#xxservices ul li.hosting a{background:orange}/* the actual item chosen*/
body#services.host #menu li#xxservices ul li.webdes a{background:orange}/* the actual item chosen*/
body#services.host #menu li#xxservices ul li.imark a{background:orange}/* the actual item chosen*/
body#services.host #menu li#xxservices ul li.domain a{background:orange}/* the actual item chosen*/
body#services.host #menu li#xxservices ul li.broadband a{background:orange}/* the actual item chosen*/
body#about #menu li#xxabout ul{display:block} /* open chosen menu */
body#about #menu li#xxabout a{background:pink} /* set background color of list item's anchor*/
body#about #menu li#xxabout ul a{background:#f2f2f2}/* stop above from applying to nested links*/
body#about #menu li#xxabout ul a:hover{background:red}
body#about.hist #menu li#xxabout ul li.history a{background:orange}/* the actual item chosen*/
body#about.tea #menu li#xxabout ul li.team a{background:orange}/* the actual item chosen*/
body#about.offi #menu li#xxabout ul li.offices a{background:orange}/* the actual item chosen*/
body#contact #menu li#xxcontact ul{display:block} /* open chosen menu */
body#contact #menu li#xxcontact a{background:pink} /* set background color of list item's anchor*/
body#contact #menu li#xxcontact ul a{background:#f2f2f2}/* stop above from applying to nested links*/
body#contact #menu li#xxcontact ul a:hover{background:red}
body#contact.gb #menu li#xxcontact ul li.uk a{background:orange}/* the actual item chosen*/
body#contact.fran #menu li#xxcontact ul li.france a{background:orange}/* the actual item chosen*/
body#contact.us #menu li#xxcontact ul li.usa a{background:orange}/* the actual item chosen*/
body#contact.aust #menu li#xxcontact ul li.australia a{background:orange}/* the actual item chosen*/
Bookmarks