Container queries

Container queries enable you to apply styles to an element based on certain attributes of its container:

Container queries are an alternative to media queries, which apply styles to elements based on viewport size or other device characteristics.

Read more