ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: hsl(0, 0%, 0%); position: fixed; top: 0; width: 100%; } li { float: left; } li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover:not(.active) { background-color: hsl(241, 85%, 18%); } .active { background-color: hsl(244, 100%, 52%); } body { margin: 0px; }