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-*).
Summary
CSS is introducing a new selector, the Class Prefix Selector, which simplifies targeting multiple classes with the same prefix. This change aims to reduce reliance on complex attribute selectors and additional base classes, streamlining your styling process.
Comments (7 of ) ⌛