New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
My logo and my nav links all sit on the same side. I want the last link pushed to the far edge instead.
What you'll have at the end
A nav bar where the logo and primary links stay clustered on one side and a small group of secondary links sits pushed to the far edge, vertically lined up and evenly spaced, built from one flex row and a single margin rule that keeps working in either reading direction.
You need
A nav bar in your markup holding a logo and a handful of links as plain flow content, not yet laid out with Flexbox.
Not covered
This does not cover collapsing the bar into a mobile hamburger menu at narrow widths, or centering the whole bar's contents instead of splitting them apart; it only covers keeping one group on each edge.
Leans on
Checked 20 Aug 2026
Part of the CSS cookbook