.nav { list-style: none; font-weight: bold; margin-bottom: 10px; z-index: 5; } .nav ul { display: none; } .nav li:hover ul { display: inline-block; }