.navbar { position: fixed; width: 100%; text-align: center; background-color: white; } .navbar li { display: inline-block; margin: 0 0.3em; } .navbar li a { display: block; transition: all 0.1s ease-in-out; } .navbar li a:hover { transform: scale(1.3); } .navbar li.current a { transform: scale(1.3); } .section { padding: 6em; line-height: 1.8; }