#navcontainer ul ul { display: none; } #navcontainer .currentAncestor + ul, #navcontainer a.current + ul { display: block !important; }