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.
I am a software engineer who is interested in sharing some knowledge ('' ,)
i decide that i will will post everyday problem that i am facing in my work.
i hope that this will help other people too
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 aninform-xxx
class, which your second option would otherwise do.thats could also be handy , thanks for you note ('' ,)