0

Can you chain multiple selectors? To change the same properties of them once.

Chain selectors

16th Feb 2018, 3:52 PM
Marius🎧Cășvean
Marius🎧Cășvean - avatar
2 Respostas
+ 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.
16th Feb 2018, 4:00 PM
Fata1 Err0r
Fata1 Err0r - avatar
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 }
16th Feb 2018, 4:14 PM
Marius🎧Cășvean
Marius🎧Cășvean - avatar