CSS Container Queries Playground - Online Test @container
Experiment with CSS container queries in a live editor. Resize the container and see styles change based on its width/height. Learn modern responsive.
UD5 Toolkit
@container style() is a CSS container query feature that allows you to conditionally apply styles based on the computed style values of a container element — most commonly CSS custom properties (variables). Unlike @container size() which responds to dimensions, style queries check things like --theme: dark or --variant: primary, enabling truly context-aware components.
@container (min-width: 400px)) respond to the container's dimensions. Style queries (@container style(--theme: dark)) respond to CSS property values on the container. This means a single component can adapt to its context without knowing about viewport sizes — perfect for design systems where the same card component needs to look different inside a dark sidebar vs a light main content area.
@container style(). Firefox and Safari are actively working on implementation. You can use @supports (container-type: inline-size) as a progressive enhancement fallback. For non-supporting browsers, provide base styles that work without the query.
--theme: dark|light on any ancestor.--variant: primary|secondary|danger.--density: compact|comfortable|spacious.container-name is optional. Without it, @container style(--x: 1) matches the nearest ancestor with a container-type. Using a named container like @container my-container style(--x: 1) lets you target a specific ancestor, which is useful when multiple containers are nested.
and / or logic: @container style(--theme: dark) and style(--variant: primary) { ... }@container style(--density: compact) or style(--density: comfortable) { ... }not: @container not style(--theme: dark) { ... }
Experiment with CSS container queries in a live editor. Resize the container and see styles change based on its width/height. Learn modern responsive.
Build a CSS media query by selecting feature, operator, and value. Copy the exact syntax for your stylesheet.
Paste a media query and instantly check for syntax errors. See if it's correctly formed. Quick developer tool.
Apply smooth color gradients to text with a live preview. Generates cross‑browser CSS including the webkit‑background‑clip property.
Enter a URL and apply a custom CSS grid overlay to check alignment. A quick frontend design tool for verifying column placement and baseline grids.
Choose where page breaks should occur for printing. Get the break‑before, break‑after, and break‑inside CSS.
Control image‑orientation: from-image vs none. See how the browser interprets EXIF rotation. Fix portrait photos.
Create a pure CSS scroll progress indicator using animation‑timeline: scroll(). No JavaScript. Copy the complete code.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Scroll a container and see how sticky elements behave. Adjust top, bottom, and scroll margins. Copy the code.
New CSS text‑spacing property for fine control over punctuation spacing. See the effect live. For advanced typography.
Load any variable font from Google Fonts or local file and play with weight, width, slant, and custom axes. Download CSS.
Browse the fonts installed on your system and type a custom phrase to see how it looks. Uses Local Font Access API where available.
Apply user‑select: none, text, all and see how it affects selection. Copy the CSS snippet for your UI elements.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
Toggle scrollbar‑gutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Build a 3D rotating cube using pure CSS. Set dimensions, colors, and animation speed. Copy the HTML and CSS.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Create a rainbow gradient text animation using pure CSS. Customize speed and colors. Copy the code for your website.
Upload a small image and generate the CSS code for a custom cursor. Test it live on the page. Tiny but useful.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Browse and search all Font Awesome 6 icons with preview, class name, and unicode. Copy the HTML snippet. Perfect for web developers.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Visually experiment with Flexbox container and item properties. See the layout update in real time and copy the CSS. Learn by doing, fully interactive.