The Future of CSS: Target Multiple Classes with the Class Prefix Selector
- To target multiple classes that share the same prefix, you’d typically have to resort to brittle attribute selectors or add extra base classes to your markup.
- To make things easier, CSS is getting a new selector: The Class Prefix Selector (.prefix-*).
- ~ ⚠️ This post is about an upcoming CSS feature.
Unverified
- To target multiple classes that share the same prefix, you’d typically have to resort to brittle attribute selectors or add extra base classes to your markup.
- To make things easier, CSS is getting a new selector: The Class Prefix Selector (.prefix-*).
- ~ ⚠️ This post is about an upcoming CSS feature.
Sources: Bram