.split-nav { display: flex; align-items: center; justify-content: space-between; } .split-nav > li:nth-child(n+3) { margin-right: auto; /* Push items to the right */ }