SASS allows the nested code to be inserted within each other. where as
CSS does support logical nesting, but the code blocks themselves are not nested.
table.hl { margin: 2em 0; td.ln { text-align: right; } } li { font: { family: serif; weight: bold; size: 1.3em; } }
Would compile to:
table.hl { margin: 2em 0; } table.hl td.ln { text-align: right; } li { font-family: serif; font-weight: bold; font-size: 1.3em; }
More complicated types of nesting including Namespace nesting and parent references are discussed in the Sass documentation