Today I learned
CSS container queries
I can't believe I'm actually writing this but CSS container queries are coming! 🥳 🎉
At some point I stopped counting the times when I was building a website layout and came to a point where I needed to adapt an element depending on the size of it's container.
This was just impossible to do with CSS.
The time has finally come where this will change!
Check out the draft for it here Opens in new tab.
It's still in a draft status but no matter what, this means css container queries are coming and these are some exciting news!
I'm already looking forward to the time when we can use this in production!
I hope you enjoyed this post and learned something new. If you have any questions, feel free to reach out to me via Email Opens in new tab.
If you want to support me, you can buy me a coffee. I would be very happy about it!
☕️ Buy me a coffee ☕️I wish you a wonderful day! Marco