Hi, I'm currently working on my website using tailwind css. I'm facing an issue with my navbar not displaying in full screen on mobile devices. Can someone please assist me with this?
See a screenshot of the bug here
You can visit the original site hosted on github - Website Link
Here is the HTML and Tailwind-CSS code snippet:
<nav class="flex justify-between bg-blue-500 w-full">
<div class="ncrt-sol mx-48 my-6">
<span class="text-white font-bold text-xl cursor-default">NCERT Solutions</span>
</div>
<div class="links">
<ul class="flex mx-40 my-6">
<li><a href="#" class="mx-8 text-white font-bold text-lg hover:text-blue-500 hover:bg-white px-6 py-2 hover:rounded-3xl duration-150">Home</a></li>
<li><a href="solution.html" class="mx-8 text-white font-bold text-lg hover:text-blue-500 hover:bg-white px-6 py-2 hover:rounded-3xl duration-150">Solutions</a></li>
<li><a href="contact.html" class="mx-8 text-white font-bold text-lg hover:text-blue-500 hover:bg-white px-6 py-2 hover:rounded-3xl duration-150">Contact</a></li>
</ul>
</div>
</nav>
I've already tried using the w-full
class for full width but it's still not resolving the issue...