nav { padding-top: 1em; } nav ul { padding: 0; display: flex; } nav > ul > li > ul { display: block; } nav li { list-style: none; padding-left: 0.4em; } nav li a.active { text-decoration-thickness: 0.3rem; }