ZaZaKi, a web developer Between Manchester UK & Rotterdam NL. © 2015-2024.

Sass Nested Rules and Properties

 

Sass SCSS example


nav {
ul {
margin: 0;
padding: 0;
list-style: none;
}
li {
display: inline-block;
}
a {
display: block;
padding: 6px 12px;
text-decoration: none;
}
}

 

CSS output

 nav ul {
margin: 0;
padding: 0;
list-style: none;
}
nav li {
display: inline-block;
}
nav a {
display: block;
padding: 6px 12px;
text-decoration: none;
}