The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [SOLVED ] What is this selector?
[class*='example-'] { }
Will this select all classes starting with example-? Is there any documentation describing the syntax in detail?
example-
Thanks
Will this select all classes starting with example-?
Yes.
More specifically, it will select all elements with “example-” anywhere in their class attribute, be it at the beginning, end, or somewhere in the middle.
class
w3 spec
css-tricks article