I have a situation where I have a div containing an image within it. I am attempting to use media queries from the Tailwind CSS framework.
<div className="flex">
<img src="/assets/logo.png" className="h-20 md:w-2" alt="logo"/>
</div>
The md:w-2
class is supposed to apply to desktop screens, but on mobile devices (specifically Chrome on iPhone 12 Pro), the default width of h-20
is being applied instead. This is the opposite of what should be happening. I have checked for any screen overrides in my Tailwind CSS file, but there are none. I have also tried removing the img
tag and testing it in different places, but the issue persists. How can I resolve this?