Container Queries are a powerful tool for defining responsive design in CSS. Unlike Media Queries, which let you apply styles to an element based on the viewport size, Container Queries let you apply styles to an element based on its own size. And the best thing is, it’s supported by all modern browsers! Let's learn CSS Container Queries in 5 minutes!
Prefer an article? Read it here: creatures.sh/blog/css-container-queries/
🔗 Links:
👉 CodePen Example: codepen.io/nikolovlazar/pen/vYvYRWr
👉 Browser support: caniuse.com/css-container-queries
👉 Learn more: developer.mozilla.org/en-US/docs/Web/CSS/CSS_conta…
--
🤝 Become a friend of the channel! Start your membership today and get extra benefits: youtube.com/channel/UCTexaJMnN_Pv6TVueQ61-oQ/join
💬 A bunch of us are hanging out at discord.creatures.sh/. Join us!
🐦 Find me on the bird app: twitter.com/NikolovLazar
🎥 What I use for coding and making videos: nikolovlazar.com/uses
コメント