Query container

noun

say it: “KWEER-ee kun-TAY-ner” /ˈkwɪri kənˈteɪnər/

An element marked with container-type, whose size the elements inside it can check with container queries.

What is a query container?

A query container is an element marked with container-type, so the elements inside can ask about its size.

.sidebar { container-type: inline-size; }

In a sentence

  • “The sidebar is the query container, so every card inside it lays itself out by the sidebar's width.”

Level: Freelancer · More CSS terms at this level

Updated