/* Nav Bar */ /* Add a dark background and fix position at top */ .topnav { background-color: rgb(25, 42, 99); overflow: hidden; position: fixed; top: 0; width: 100%; } /* Style the links inside the navigation bar */ .topnav a { float: left ; display: block; color: #f2f2f2; text-align: center; padding: 12px 12px; text-decoration: none; font-size: 17px; } #username { float: right; display: block; color: #afc9e6; text-align: center; padding: 12px 16px; text-decoration: none; font-size: 17px; } /* Change the color of links on hover */ .topnav a:hover { background-color: #ddd; color: rgb(14, 64, 109); } /* Add an active class to highlight the current page */ .active { background-color: rgb(144, 157, 177); color: white; }