🔰 Container queries in CSS
If you have not tried out container queries yet, would highly recommend that you do
This is a relatively new CSS feature, which is similar to media queries. While media queries are based on the dimension of the entire page, container queries are specific to individual elements in a page.
👉 Here we define a "container" and conditionally style elements inside the container based on the dimensions of the container
👉 Some other examples include, when you want to style an individual card based on its size
💎 @Htmlcss_channels | #css #JavaScript #HTML
Post #2324
2.92K
- ❤ 3
- 👏 1