Navigation Bars
Build responsive navigation bars using Flexbox and responsive utilities.
Learning approach
Study the Tailwind classes in the example, run the preview, then modify the classes and observe how the design changes.
Tailwind Example
HTML + Tailwind CSS
<nav class="flex items-center justify-between p-5 bg-slate-950 text-white">
<div class="font-bold">
Vinsoft Lab
</div>
<div class="hidden md:flex gap-6 text-sm">
<a href="#">Home</a>
<a href="#">Courses</a>
<a href="#">Projects</a>
<a href="#">Contact</a>
</div>
</nav>
Live Preview
Your Tailwind design will appear here.
Click Run Preview
See the lesson example here.
Test your understanding
Choose the best answer.
Which prefix is commonly used for medium-screen responsive styles?