๐ ๐๐จ๐ฐ ๐ญ๐จ ๐๐๐ค๐ ๐๐จ๐ฎ๐ซ ๐๐๐ ๐๐จ๐ซ๐ ๐๐๐ฎ๐ฌ๐๐๐ฅ๐ ๐๐ง๐ ๐๐๐ข๐ง๐ญ๐๐ข๐ง๐๐๐ฅ๐
๐๐ซ๐จ๐๐ฅ๐๐ฆ?
Imagine, you are going to design a web page. When writing HTML youโve probably noticed that it has a clear nested and visual hierarchy. CSS, on the other hand, doesnโt. So, when we need to add style for HTML tags, you might repeat the HTML selector over and over. How can we prevent this?
๐๐จ๐ฅ๐ฎ๐ญ๐ข๐จ๐ง?
Sass solves this problem by nesting.
Get Shirin Monzaviโs stories inย yourย inbox
Join Medium for free to get updates fromย thisย writer.
๐๐จ๐ฐ?
1๏ธโฃ Install Sass. npm install sass
2๏ธโฃ Create your .scss file and start nesting
๐๐๐ฏ๐ ๐ฒ๐จ๐ฎ ๐๐ฏ๐๐ซ ๐ฎ๐ฌ๐ ๐๐๐ฌ๐ฌ ๐จ๐ซ ๐๐๐ฌ๐ฌ? ๐๐ ๐ฌ๐จ, ๐๐ก๐๐ซ๐ ๐ฒ๐จ๐ฎ๐ซ ๐๐ฑ๐ฉ๐๐ซ๐ข๐๐ง๐๐ ๐ข๐ง ๐ญ๐ก๐ ๐๐จ๐ฆ๐ฆ๐๐ง๐ญ.








