Dropdown Menu Disappears; Too Much Space between Nav and Dropdown Menu
-
Hi, I’ve been trying to add a dropdown menu to a custom-made theme but there is too much space between the main nav items and the dropdowns relative to them, so they disappear.
Here is the CSS for it:
#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
display: none;
position: absolute;
top: 38px;
left: 0;
float: left;
width: 180px;
z-index: 99999;
}
#access ul ul li {
min-width: 180px;
}
#access ul ul ul {
left: 100%;
top: 0;
}
#access ul ul a {
background: #fff;
line-height: 1em;
padding: 10px;
width: 160px;
height: auto;
}
#access li:hover > a,
#access ul ul :hover > a {
background: #fff;
color: #c2042a;
}
#access ul li:hover > ul {
display: block;
- The topic ‘Dropdown Menu Disappears; Too Much Space between Nav and Dropdown Menu’ is closed to new replies.