I'm trying to add responsive padding to a component. Since Tailwind CSS is mobile-first, I'm defining my mobile padding to p-3 and screens at "md" and greater widths should use p-5. However, as you can see, the p-3 class is overriding the md:p-5 class. How can I fix this?
<div className="flex-column flex rounded-3xl bg-slate-100 p-3 md:p-5">
Developer tools image:

I have had the same issue; in my case, it was because I was using bootstrap and tailwind together.
Maybe using another CSS framework/library also causes this.
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