Can X number of elements (h1, p, span...) be modified only if they have a specific class? I'm searching for a solution like this:
(elem1, elem2, elem3, elem4).class {
/* add customization here */
}
I previously attempted using parentheses, curly braces, and square brackets. It appeared that curly braces worked, but upon inspecting Firefox's console, it seemed to ignore everything between the beginning and end of the braces. It did work, but applied to elements like div
instead of p
, span
, hX
.
Although I am aware that using...
elem1.class, elem2.class, elem3.class, elem4.class {
/* add customization here */
}
would achieve the desired result, I was hoping for a more concise syntax due to my laziness.