body { font-family: 'Comfortaa', cursive; padding-top: 80px; padding-left: 10px; } ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; position: fixed; top: 0; left: 0; width: 100%; } li { float: left; } li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; cursor: pointer; } /* Change the link color to #111 (black) on hover */ li a:hover { background-color: #111; } #container { border: 2px green dashed; padding: 20px; }