0
Can you chain multiple selectors? To change the same properties of them once.
Chain selectors
2 ответов
+ 2
Are we talking about CSS or jQuery?
The more efficient means of doing this is utilizing the class system. Then you can simply place a class upon the related selectors and then just use the class as the selector to change everything at once. Less code also.
0
Refered to CSS. Maybe more efficient seems this way you describe Jakob Marley, than to write in CSS file all selectors separated by comma. And can you add more classes to same thing, then call those classes separately in CSS?
Ex:
html:
<p class="firstClass", class="secondClass">Textttt here</p>
css:
.firstClass { codes here }