I add some css code for the second level menu but i’m stuck.
I need changed CSS for ul.dropdown ul li and add » for each second menu.
How do you reproduce that in CSS & HTML?
/*
LEVEL ONE
*/
ul.dropdown * {
margin:0;
padding:0;
list-style:none
}
ul.dropdown {
position: relative;
left: 20px;
}
ul.dropdown li {
margin: 0px;
padding: 0px;
float: left;
font: bold 14px Tahoma, Arial, sans-serif;
zoom: 1;
}
ul.dropdown a:hover {
color: #FAEEE4;
}
ul.dropdown a:active {
color: #FAEEE4;
}
ul.dropdown li a {
color: #FAEEE4;
text-decoration: none;
display: block;
padding: 5px 7px;
}
ul.dropdown li.hover, ul.dropdown li:hover {
background: #997FA3;
color: black;
position: relative;
}
/*
LEVEL TWO
*/
ul.dropdown ul {
width: 170px;
visibility: hidden;
position: absolute;
top: 100%;
left: 0;
}
ul.dropdown ul li {
font: 13px Tahoma, Arial, sans-serif;
color: #FAEEE4;
background: #997FA3;
float: none;
}
ul.dropdown ul li:hover {
background: #774F87;
}
ul.dropdown ul li a {
color: #FAEEE4;
text-decoration: none;
display: block;
}
ul.dropdown ul li a:hover {
font-weight: bold;
}
/* IE 6 & 7 Needs Inline Block */
ul.dropdown ul li a {
border-right: none;
width: 100%;
display: inline-block;
}
/*
LEVEL THREE
*/
ul.dropdown ul ul {
left: 100%;
top: 0;
}
ul.dropdown li:hover > ul {
visibility: visible;
}
OOT but still similar issue with wordpress & css.
take a look thelocalscoopnews.com, on upper left header move your mouse on “Stay Connected” menu and then move the mouse on submenu and just hold for a minute. After some seconds, the submenu will dissapear.
How to fix that?
#masthead {
background: url("../evertis/styles/default/subscribe.gif") no-repeat scroll 4px center #F5F5F5;
clear: both;
font-size: 0.9em;
height: 25px;
margin-bottom: 15px;
padding: 2px 5px 2px 20px;
position: relative;
margin: 0 auto;
width: 945px;
background: url("http://ezymagazines.com/wp-content/themes/Advanced-Newspaper142/styles/default/subscribe.gif") no-repeat scroll 4px center whiteSmoke;
clear: both;
font-size: 0.9em;
padding: 2px 5px 2px 20px;
position: relative;
z-index:99999;
}
/*
masthead
*/
#masthead ul {
float: left;
padding: 0;
padding: 5px 0 0;
}
#masthead ul li {
color: #CD1713;
display: inline;
float: left;
font: bold 12px georgia,arial,tahoma,verdana,sans-serif;
margin-left: 0;
padding: 0 0 1px 0;
position: relative;
list-style:none;
}
#masthead ul li a:link, #masthead ul li a:visited {
text-decoration: none;
}
#masthead ul li a {
color: #010D37;
display: block;
}
#masthead ul li ul {
border-top: 1px solid #AFAFAF;
display: block;
left: 0;
margin: 0;
padding: 0;
position: absolute;
visibility: hidden;
}
#masthead ul li ul li a, #masthead .select ul li a {
background: none repeat scroll 0 0 #E9E9E9;
color: #010D37;
font-weight: normal;
height: auto;
margin: 0;
padding: 3px 10px 2px 23px;
text-align: left;
text-decoration: none;
width: 160px;
}
#masthead ul li ul{
background: none repeat scroll 0 0 #CCCCCC;
width:192px !important;
}
#masthead ul li ul li {
background: none repeat scroll 0 0 transparent;
border: medium none;
display: list-item;
float: none;
font-size: 1em;
font-weight: normal;
margin: 0;
width: 100px;
z-index: 99999;
}
#masthead ul li ul li a.gab_rss {
background: url("../evertis/styles/default/ico_rss.png") no-repeat scroll 3px center #E9E9E9;
}
#masthead ul li ul li ul {
background: none repeat scroll 0 0 #CCCCCC;
border-top: 1px solid #AFAFAF;
left: 172px !important;
margin: -1px 0 0;
top: 0;
width: 192px !important;
}