Updated: 2026-07-11
βοΈ Options
Examples:
π₯ Input CSS
π€ Output
0 lines
Click "To Nested" or "Expand to Flat" to see result
π‘ About CSS Nesting
CSS Nesting is a native CSS feature (CSS Nesting Module Level 1) that lets you nest style rules within other rules.
Use the & symbol to reference the parent selector. Example:
.card {
background: #0f172a;
& .title { font-size: 1.2rem; }
&:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
}
π Note: CSS Nesting requires nested selectors to start with &, ., #, :, [, >, +, or ~.