I'm currently working on implementing responsive padding for a component. Given that Tailwind CSS follows a mobile-first approach, I have set the mobile padding to p-3
, while screens at "md" and larger widths should use p-5
. However, it seems like the p-3
class is taking precedence over the md:p-5
class. How can I resolve this issue?
<div className="flex-column flex rounded-3xl bg-slate-100 p-3 md:p-5">
Please refer to the image below for information from developer tools: https://i.sstatic.net/zGNHM.png