nav { display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; } nav a { white-space: nowrap; padding: 0 15px; flex-shrink: 0; }.header-nav { display: flex; justify-content: center; flex-wrap: nowrap;