Skip to content

Instantly share code, notes, and snippets.

@hsleonis
Created December 12, 2016 07:02
Show Gist options
  • Select an option

  • Save hsleonis/c7e7946673bee70d8deff3e77a46cc90 to your computer and use it in GitHub Desktop.

Select an option

Save hsleonis/c7e7946673bee70d8deff3e77a46cc90 to your computer and use it in GitHub Desktop.
Wildcard * in CSS for classes
div[class^="tocolor-"], div[class*=" tocolor-"] {
color:red
}
/*
In the place of div you can add any element or remove it altogether,
and in the place of class you can add any attribute of the specified element.
[class^="tocolor-"] — starts with "tocolor-".
[class*=" tocolor-"] — contains the substring "tocolor-" occurring directly after a space character.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment