Container Query Builder
Set a container name and size condition, then resize the local preview to verify the computed layout. Copy or download the resulting CSS.
Test a Named Container Breakpoint
280 px selected · 280 px measured · 1 column
09:30
10:00
10:30
12:00
Place an element with class cq-layout inside an element with class cq-container. The preview width is separate from the exported rule.
Container Query Builder: how to use it
- Enter the container name and choose At least, At most or Between.
- Set the width thresholds and matching grid columns and gap.
- Move Preview container width through the boundary, compare the measured columns and export the CSS.
Limits and notes
Accepts whole-pixel thresholds from 120 to 960, two to four matching columns, and gaps up to 32 pixels. The preview runs inside your browser and uses a named inline-size container.
How your privacy works →Container Query Builder: common questions
Which element should get the container declaration?
Apply it to a parent of the element whose layout changes. The query applies its grid rules to the descendant.
Does At least include the exact threshold?
Yes. A min-width condition of 360 px starts matching at 360 px.
Can I verify a width range?
Choose Between and enter minimum and maximum widths. The preview applies the layout inside both inclusive boundaries.