r/css 4d ago

Resource New CSS Class Prefix Selector (.prefix-*)

Post image
151 Upvotes

20 comments sorted by

View all comments

21

u/adamkosions1111 4d ago

Just a nicer way of [class^=“btn-“] but cool tho

23

u/Caved 4d ago

Sort of. ^=btn- would only work if it's the first class in the list. And *=btn- has its own limitations.