Is it possible to select a element that has a class that starts with a string?
There is
.element[class^="icon-"]{
...
}
but it fails when the class is preceded by another class or whatever :(
Is it possible to select a element that has a class that starts with a string?
There is
.element[class^="icon-"]{
...
}
but it fails when the class is preceded by another class or whatever :(
Yes, you can!
.element[class^='icon-'],
.element[class*=' icon-'] {
...
}
See it in action: http://jsfiddle.net/caio/mxUxR/.