My CSS-based drop down menu works perfectly, but now I want to add a sub-menu that is also visible. However, I am encountering an issue where the height of the main menu list expands when the sub menu is displayed.
.cascade_content {
/* cascading sub menu */
display: none;
z-index: 103;
position: relative;
background: #FFFFFF;
border: 1px solid #8C8C8C;
padding: 10px 0px 10px 0px;
width: 190px;
left: -192px;
top: -26px;
-moz-box-shadow: 0 2px 6px 0px #8C8C8C;
-webkit-box-shadow: 0 2px 6px 0px #8C8C8C;
box-shadow: 0 2px 6px 0px #8C8C8C;
}
It appears that setting position:relative in the sub menu is causing this issue. Changing it to position:absolute causes the problem of it not appearing correctly. Any assistance from those with more CSS expertise would be greatly appreciated!