Container Queries in CSS - Practical Examples

Опубликовано: 07 Ноябрь 2022
на канале: Andre Madarang
4,983
103

Container queries allow you to style your components and layouts based on the size of the container instead of the size of the viewport. This allows us to reuse components across different containers, regardless of size.

Let's take a look at two practical examples of how container queries are a better solution than traditional media queries.

GitHub Repo: https://github.com/drehimself/yt-cont...
Example Components using Container Queries: https://lab.ishadeed.com/container-qu...


LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter:   / drehimself  
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself