"not" failing matching :

label:not([class=custom-control-label]).required:before

@worldsendless Why not label.required:not(.custom-control-label):before?

@tennoseremel right you were! Just get rid of that `class=` nonsense and it worked

@worldsendless class= means that the attribute must match exactly. You probably wanted ~=, although you don't need that with class specifically.

developer.mozilla.org/en-US/do

Follow

@tennoseremel ah! so it was just missing because it had other classes, too? That makes sense!

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.