Created
December 12, 2016 07:02
-
-
Save hsleonis/c7e7946673bee70d8deff3e77a46cc90 to your computer and use it in GitHub Desktop.
Wildcard * in CSS for classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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