CSS ID z maską wieloznaczną

*[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.
artharus