CSS Nesting Lab - Free Online CSS Tool | IconVault
Play with native CSS nesting and the & parent selector with live previews. Free, no signup, runs in your browser.
CSS Nesting Lab
Experiment with native CSS nesting
Nested CSS input
5 of 5 free flattens left.
Handles &, nested selectors, comma lists and nested at-rules like @media. For exotic cases (nesting inside @supports conditions, @scope) use a real preprocessor.
Flattened output
.lab-card:hover {
border-color: #0f766e;
box-shadow: 0 12px 32px rgba(15, 118, 110, 0.12);
}
.lab-card .lab-title {
margin: 0 0 8px;
font-size: 20px;
font-weight: 800;
}
.lab-card .lab-text {
margin: 0 0 16px;
color: #64748b;
font-size: 14px;
line-height: 1.6;
}
.lab-card .lab-btn:hover {
background: #0d5f59;
}
.lab-card .lab-btn {
background: #0f766e;
color: #fff;
border: 0;
border-radius: 999px;
padding: 10px 22px;
font-weight: 700;
cursor: pointer;
}
@media (max-width: 480px) {
.lab-card .lab-title {
font-size: 17px;
}
.lab-card {
padding: 16px;
}
}
.lab-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 16px;
padding: 24px;
max-width: 420px;
}Live preview
Card title
This sample card is styled by your flattened CSS, live. Hover it, resize the window, and edit the input to see changes instantly.
About this tool
IconVault's CSS Nesting Lab is a playground for native CSS nesting: write nested rules with the & parent selector, nest pseudo-classes, pseudo-elements, media queries and combinators, and see the flattened result update live. No Sass or build step needed.
Nesting is now part of the CSS language itself, so the patterns you learned in preprocessors work in the browser directly. Try & :hover, &:not(), nested @media and @supports blocks. Free and runs fully in your browser.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon