Is it me or is the responsive design example not working for me? #18365
-
For this example and a few others on this link (https://tailwindcss.com/docs/responsive-design#targeting-mobile-screens): This doesn't work unless I add an 'important' to the media queries, i.e.: To avoid the important tag, I currently do the following as a workaround instead: Same goes with the other examples. Not sure if I am doing something wrong. I'm on Tailwind 4.1.10. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Consider providing a git repo that reproduces the issue and we can take a look for you. |
Beta Was this translation helpful? Give feedback.
Could be you have multiple instances of Tailwind-compiled CSS on the webpage. Consider checking you only have one single instance. Otherwise, it could be incorrect integration/configuration.