Very late, but you can use the attribute selector.
In your case, to target the element class='a.b' you can use:
[class~="ab"] {...}
In addition, here is a complete list of attribute selectors.
Attribute Presence Selector
Attribute Selector
Attribute contains selector
Attribute begins with a selector.
Attribute ends with selector
Attribute diversity selector
// Selects an element if the given attribute value // is whitespace-separated with one word being exactly as stated // HTML <a href="#" rel="tag nofollow">...</a> // CSS a[rel~="tag"] {...}
Hyphenated Selector Attribute
// Selects an element if the given attribute value is // hyphen-separated and begins with the word stated // HTML <a href="#" lang="en-US">...</a> // CSS a[lang|="en"] {...}
Source: learn.shayhowe.com
Matija Mrkaic Jan 23 '15 at 10:09 2015-01-23 10:09
source share