Can you post your actual code here https://play.tailwindcss.com/ and share the link
Feb 6, 2022
5
Level 4
Tailwind breaking point issue with navbar
Hi all,
I am still new to Tailwind 3 and cannot figure out how the breaking points can be manipulated for a nav bar.
Let's say I have a nav like this:
<div class="main">
<div class="div1">
Home | Link 1 | Link 2 | Link 3 | Link 4
</div>
<div class="div2">
[button1] [button2]
</div>
</div>
When my page resizes, the buttons on the right side clash with Link 3 and link 4.
How would you set the Hidden property on the div1 to hidden only after xxx page width?
Thanks
Level 51
If you want to use md breakpoint for example you would do it like that.
<div class="main">
<div class="div1 none md:block">
Home | Link 1 | Link 2 | Link 3 | Link 4
</div>
<div class="div2">
[button1] [button2]
</div>
</div>
if you use a breakpoint property, it will take effect from that breakpoint and above.
Please or to participate in this conversation.