Select all css classes containing a word

div[class*="col-"]{
color: green;
}

Note that this selector is different as it references a class attribute that starts with the word.

div[class^="col-"]{
color: green;
}

Leave a comment

Your email address will not be published. Required fields are marked *