0
What would this css selector select?
[class*="col-"] What would this select?
1 ответ
+ 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