Here is how I am currently coding my CSS:
Regular CSS:
#content { color: white; background: black; }
#content a { color: yellow; }
#content p { margin: 0; }
#content (etc...)
#contnet (etc...)
#content (etc...)
(I always include the parent even if it's not necessary so I can navigate within the stylesheet easily)
This is how it would be done using SCSS or LESS:
#content {
color: white;
background: black;
a { color: yellow; }
p { margin: 0em; }
(etc....)
(etc....)
(etc....)
}
What are some advantages and disadvantages of nesting rules in CSS?