DevTools Logo

CSS Container Queries Lab

CSS Container Queries Lab

Generate container query CSS and preview component patterns locally

Configuration

Breakpoints (px)

Remember: a container query only works when an ancestor declares container-type.

About

A deterministic client-side CSS container query generator with inline-size or size container types, increasing-breakpoint validation, and a resizable live preview for common component patterns.

About this tool

Create valid CSS container-name, container-type, and breakpoint @container rules for responsive cards, navigation, and tables. CSS Container Queries Lab runs in the browser on DevTools. There is no signup, and your input stays on this device unless the tool explicitly performs a live network lookup.

What this tool does not do

  • CSS Container Queries Lab is a free in-browser utility, not a hosted API. It does not keep server-side history and is not a substitute for production verification in your own stack.

How do I use this tool?

  1. How do I use CSS Container Queries Lab?

    Open CSS Container Queries Lab, enter or paste your input, and copy the result. The page works without an account.