tailwindcss custom responsive breakpoint
Unanswered
Satin posted this in #help-forum
SatinOP
custom tailwind max-[1450px]:flex-col don't work on my website anyone experience this and did you find any solutions or I am the one that's wrong here.
7 Replies
what are you trying to do? display flex-col above width 1450?
tailwind's breakpoints feature are unfortunately mobile-first. This means you have to define the
First you have to add the breakpoints here:
https://tailwindcss.com/docs/responsive-design#customizing-your-theme
Then you should be able to do something like this
(flex-col up until 1450px, otherwise flex-row)
min
instead of the max.First you have to add the breakpoints here:
https://tailwindcss.com/docs/responsive-design#customizing-your-theme
Then you should be able to do something like this
flex-col wide:flex-row
(flex-col up until 1450px, otherwise flex-row)
SatinOP
Basically I want to add flex col when browser size reach 1450px.
Researched about it and tailwind has custom arbitrary values with max-[]:
Researched about it and tailwind has custom arbitrary values with max-[]:
https://play.tailwindcss.com/w6k9iwJNul it should work here
maybe there are other breakpoints that are conflicting with your max-[1450px]?
try hovering
max-[1450px]:flex-col
with your mouseSatinOP
It did actually work will try some fixing on my code. Hope to get this solved. Thanks!