Una Kravets 8/3/2022

@container and :has(): two powerful new responsive APIs

Read Original

This technical article details the new CSS features @container queries and the :has() pseudo-class, now available in Chromium 105. It explains how container queries allow components to style themselves based on parent size, and how :has() selects parent elements. The guide includes code examples and demonstrates combining both features for powerful, intrinsic responsive web design.

@container and :has(): two powerful new responsive APIs

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes