Answers for "css id with mask wildcard"

CSS
0

css id with mask wildcard

*[id^='term-']{
    [css here]
}

div[class^="tocolor-"], div[class*=" tocolor-"] {
    [css here]
}

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.
Posted by: Guest on January-25-2022

Browse Popular Code Answers by Language