.nav ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; } .nav li { float: left; border-right: 1px solid #bbb; } .nav li:last-child { border-right: none; } .nav li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } .nav .active { color: #ff7f00; } /* Change the link color to #111 (black) on hover */ .nav li a:hover { filter: brightness(80%); } .content { height: 100%; } body { height: 100vh; display: flex; flex-direction: column; align-items: stretch; }