News for hackers. Stuff that matters.
Re:What working with Tailwind CSS every day for 2 years look... by philliphaydon on Tuesday November 29, 2022 @11:23AM (#33789541)
I started html when I was about 11 so I’m at 25 years.

I just discovered last night there’s an aspect ratio property…

https://caniuse.com/mdn-css_properties_aspect-ratio

Re:What working with Tailwind CSS every day for 2 years look... by pewpewyouhit on Tuesday November 29, 2022 @11:42AM (#33789791)
It’s pretty new though. Less than 2 years I think.
Re:What working with Tailwind CSS every day for 2 years look... by philliphaydon on Tuesday November 29, 2022 @11:45AM (#33789843)
I was just shocked. Last night I’m like “hmm need to maintain aspect ratio on this box. Maybe I can use calc and vh or something.

And this shocked up in Google. Rocked my world. I wanna go back across a bunch of products I’ve worked on over the years to fix stuff using this!

One of my favourite features now!

Re:What working with Tailwind CSS every day for 2 years look... by troysk on Tuesday November 29, 2022 @01:01PM (#33790913)
It is definitely magical! So many hours saved trying to find the right responsive break points for those particular card UIs.
Re:What working with Tailwind CSS every day for 2 years look... by dekerta on Tuesday November 29, 2022 @11:34AM (#33789687)
aspect-ratio is a new standard, so don't feel too bad about that