0

What would this css selector select?

[class*="col-"] What would this select?

7th Jan 2020, 11:06 AM
Abdul Rauf Khan
Abdul Rauf Khan - avatar
1 Réponse
+ 6
It'll select all those elements whose class attribute is set to value that contains "col-" for example if you have markup as follows : <div class="col-1"></div> <div class="col-2"></div> <span class="col-1-1"></span> <span class="col-1-2"></span> even this <div class="my-col-1"></div> all these element will be selected as they satisfy given criteria(i.e containing "col-" in value of class attribute) for details check: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors
7th Jan 2020, 11:32 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar