DEV Community

Discussion on: Can we assign css to dynamic Generated Classes? YES we can

Collapse
 
alohci profile image
Nicholas Stimpson

I'd combine option 1 and option 2 (slightly modified) as

[class^="form-"],[class*=" form-"] { ... }

so the form-xxx class can appear anywhere in a list of classes, and at the same time not match an inform-xxx class, which your second option would otherwise do.

Collapse
 
jadzeino profile image
Ahmed Zeno

thats could also be handy , thanks for you note ('' ,)