-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
responsive design #15042
sheraz-saqib
started this conversation in
Kind words
responsive design
#15042
-
max-[600px]:bg-sky-300
max-[custom_units]:w-full
max-2xl:h-full
these are media qureys classes not working
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
Replies: 2 comments
-
Consider checking whether your Tailwind configuration conforms to the restrictions for max-*
variants to work. Otherwise, consider providing a reproducible example please.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
0 replies
-
Tailwind Version Compatibility
Custom screen sizes like max-[600px] and arbitrary values were introduced in Tailwind CSS v3.2+. Check your version:
bash
npm list tailwindcss
If you're on an older version, update:
bash
npm install tailwindcss@latest
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment