I am trying to hide a div in mobile device, but I am not able to do that, this is my code below
<div class="absolute top-0 inset-x-0 p-2 transition transform origin-top-right sm:hidden">
<p>asdasd</p>
</div>
How to do this in tailwind
Tailwind is mobile first, sm is 576px and above (640px in v1), if you want to make it hidden below md, it should be just <div class="hidden md:block">
Can you try:
<div class="hidden sm:block">
<p>asdasd</p>
</div>
Or sm:flex if you want it to be flex.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With