Tsallaka zuwa abun ciki
Justice Tech School

Project: Responsive Navbar

Build a logo plus link list that stays in a row on desktop and stacks on small screens. Combine flexbox, gap and a media query.

Example
<style>
.n { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; background: #0f172a; padding: 10px } .n ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 } .n a { color: #5eead4; text-decoration: none }
</style>
<div class="n"><b>Logo</b><ul><li><a href="#">Home</a></li><li><a href="#">About</a></li></ul></div>

Exercise

Space the items out.

justify-content: space-;

Quiz Test

Which tools build the navbar?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.