Size order in Tailwind CSS!!
Wow... I keep forgetting like an idiot... I've done backend, frontend, CSS... It's killing me... I asked Tailwind CSS. Translated, the default is mobile, and pr
GGAMI
Wow... I keep forgetting like an idiot... I've done backend, frontend, CSS...
It's killing me...
I asked Tailwind CSS.
“text-sm sm:text-base”
Default is mobile, prefixes mean “this size and above”Translated,
the default is mobile, and prefixes mean 'this size and above.'
That's what it says...
Everything is mobile by default. Since everything you enter is based on mobile,
you have to specify the styles for larger sizes...
I think Bootstrap used specific breakpoints...
Tailwind CSS is different. If you write something with no prefix, it always applies to mobile, and with md, it applies at md and above.
I keep forgetting, so I'm just writing it down...