Is it possible to alter X amount of elements (h1, p, span...) only if they have a specific class? I'm looking for something like this:
(elem1, elem2, elem3, elem4).class {
/* do things here */
}
Previously I tried with parentheses, curly and square brackets, and curly seemed to work but a quick glance to Firefox's console inspector seemed to tell me it ignored eveything between the start and end of the brackets, and of course worked, but would also apply to a, say, div
instead of p
, span
, hX
.
I know that doing...
elem1.class, elem2.class, elem3.class, elem4.class {
/* do things here */
}
would work, but I was looking for a less verbose syntax, because I'm a lazy ass.