Sass :nested

You are Here:

Sass :nested

Sass :nested is one of the sass's output style. It indents CSS rules to match the nesting of the Sass source. It is default value in Ruby Sass.

Note: Ruby Sass is deprecated, whereas node-sass does not support :nested output styling.


body{ text-align: right; a, a:visited { padding: 0 3px; color: #222222; } a:hover { color: #B00909; } }

Execute the following command.

Command Prompt
sass --watch scss/basic.scss:css/basic.css --style nested
body { text-align: right; } body a, body a:visited { padding: 0 3px; color: #222222; } body a:hover { color: #B00909; }


Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Sass.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author