.nav { display: flex; position: absolute; width: 100%; list-style: none; margin: 0px; padding-left: 13px; margin-left: 240px; min-height: 60px; overflow: hidden; align-items: center; background: #fff; border-bottom: none; flex: 1; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); li { margin-right: 10px; } li a { color: #999; text-align: center; transition: .3s; } li a:hover { color: #333; transition: .3s; } }