Get the latest tech news

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-*).

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of future

future

Photo of css

css

Photo of multiple classes

multiple classes

Related news:

News photo

‘Doctor Who’ Writer Mark Gatiss Says What We’re All Thinking About the Show’s Future

News photo

I Saw the Future of AI in a Robot That Can Learn on the Spot

News photo

Nvidia Tries to Spur the AI Boom Into the Future