Modern CSS Tool
Generate CSS Container
Queries Instantly
Define container types, add breakpoints, specify CSS properties — and copy production-ready @container rules in seconds. No login. No server. 100% browser-based.
📦
Visual Container Builder
Set container names and types (size, inline-size, normal) with a guided form — no syntax memorisation needed.
📐
Unlimited Breakpoints
Add as many @container query breakpoints as you need, each with their own set of CSS property-value pairs.
⚡
Copy-Ready Output
Instantly copy clean, production-ready CSS to your clipboard. Supports px, em, rem, %, and custom conditions.
Container Setup
.
Containment on inline axis (width)
Named containers allow targeting a specific ancestor in nested layouts.
@container Rules
@container rule 1(min-width: 400px)
:
:
Generated CSS
.card {
container-type: inline-size;
}
@container (min-width: 400px) {
.card-body {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
}Supported in Chrome 105+, Firefox 110+, Safari 16+, Edge 105+ · Can I use?
Frequently Asked Questions
Everything you need to know about CSS Container Query Generator.