body { margin: 0px; padding: 5px; font-family: sans-serif; background-color: black; color: #fff; } a { text-decoration: none; color: #fff; } a:hover { font-style: normal; color: darkorange; } table { border: none; margin-left: 25%; padding: 0px; } #navbar { margin-left: 0px; margin-top: 0px; position: fixed; padding: 30px; width: 100%; height: 10%; box-sizing: border-box; transition: .3s; } #navbar > ul > li > a{ display: block; } #navbar > ul { margin: auto; padding: 30px; } #navbar > ul > li { float: right; margin: auto; display: flex; list-style: none; }