Currently, this is how I'm coding my CSS:
Normal 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 its not necessary so I can orient myself within the stylesheet)
This is how it would be done in SCSS or LESS:
#content {
color: white;
background: black;
a { color: yellow; }
p { margin: 0em; }
(etc....)
(etc....)
(etc....)
}
What are some of the pro and cons of having nesting rules in CSS?