I understand the basic gist of using :not() in CSS, but it doesn't seem to work for me. I am trying to do something like:
input[type=text][readonly]:not(.class1, .class2) {
background-color: #DDDDDD;
color: #1E1E1E;
}
But this does nto seem to work for me. whenever I read any information on this, it will have examples like input:not(.class1, .class2) {
, but nothing between the tag and the :not()
part. Am I correct in assuming that the syntax I have written is incorrect? Can I not define the tag element any more if I use :not()
?