Error with breakpoints #2693
-
Describe the problem:In tailwind.config.js added new breakpoints:
Try to use it
But in browser on width 414px class 'w-2/12' disabled, works only 'w-5/12' |
Beta Was this translation helpful? Give feedback.
Answered by
adamwathan
Oct 28, 2020
Replies: 1 comment
-
For max-width breakpoints you will want to reverse the order of your screens to make sure the smaller ones take precedence over the larger ones: module.exports = {
theme: {
screens: {
xl: { max: '1600px' },
lg: { max: '1280px' },
md: { max: '960px' },
sm: { max: '600px' },
},
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adamwathan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For max-width breakpoints you will want to reverse the order of your screens to make sure the smaller ones take precedence over the larger ones: