.glass { margin: auto; margin-top: 2em; width: 75%; } nav { height: 2em; text-align: center; display: flex; } nav a { display: inline-block; margin: auto; width: 4em; height: 1.4em; border-bottom-style: solid; border-bottom-color: rgba(255, 255, 255, 0); border-top-style: solid; border-top-color: rgba(255, 255, 255, 0); transition-duration: 0.25s; color: white; text-decoration: none; } nav a:hover { border-bottom-color: rgba(255, 255, 255, 255) } h1{ border-bottom-style:dotted; padding-right:1.25em; width:fit-content }