3 ms·
Um you can in tailwind Its like md:p-2 which is for m devices , make padding as 2 Or xl:p-4 , which is for xl devices , make padding as 4 Similarly for hover
by teitoklien 5y ago
Um you can in tailwind
Its like
md:p-2 which is for m devices , make padding as 2
Or xl:p-4 , which is for xl devices , make padding as 4
Similarly for hover or focus in tailwind its
bg-white hover:bg-black focus:bg-red
Which says , by default keep background of this element white , when you hover over it keep it black and when you focus on it , keep it red
Works just fine,
Give it a try and go through the docs of tailwind, navigating it using algolia, is a joy :D
- hanspagel 5y agoI think Adam knows what’s possible with Tailwind CSS [1], but wanted to point out that it’s not possible with just a style attribute. :-) [1] https://github.com/tailwindlabs/tailwindcss/graphs/contributors https://github.com/tailwindlabs/tailwindcss/graphs/contribut...
- adamwathan 5y agoHaha correct, I was just explaining why inline styles aren't a suitable alternative to Tailwind. Tailwind can definitely do all that stuff!
- teitoklien 5y agoThanks a lot for making tailwind ! Haha i didnt check the username before replying, sorry xD Your project is the reason why i like building web interfaces again.
- deleted 5y ago[deleted]
- Kiro 5y agoIn case the other comment isn't clear: you're replying to the creator of Tailwind.
- teitoklien 5y agoF Amen