Responsive Navigation Pattern
A responsive nav stacks links on small screens and sits in a row from a breakpoint up. Use a button with aria-expanded to toggle on phones.
Example
<style>
nav { display: flex; flex-direction: column; background: #1e293b } nav a { padding: 8px; color: #5eead4; text-decoration: none } @media (min-width: 500px) { nav { flex-direction: row } }
</style>
<nav><a href="#">Home</a><a href="#">Tutorials</a><a href="#">Pricing</a></nav>Exercise
Row from 500px up.
flex-direction: ;
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.