Let’s think we have a couple of elements (p, h4, h5, h6, label) that are contained in div.container. All element has been styled outside the container
p, h4, h5, h6, label{color: #fff;}
but we want to set new style for them when are contained in that special container so i usually write:
div.container p, div.container h4,
div.container h5, div.container h6,
div.container label{color: #ddd;}
everything is OK, just this is too long too coding. is there a way (shorter coding) to targeting all those elements? like:
div.container [p, h4, h5, h6, label] {color: #ddd;}
note: i don’t want to use pre-processors.
There is no absolute way to do that without pre-processors.