Can the :not() pseudo-class have multiple arguments?

delphi picture delphi · Apr 16, 2011 · Viewed 293.4k times · Source

I'm trying to select input elements of all types except radio and checkbox.

Many people have shown that you can put multiple arguments in :not, but using type doesn't seem to work anyway I try it.

form input:not([type="radio"], [type="checkbox"]) {
  /* css here */
}

Any ideas?

Answer

Felix Kling picture Felix Kling · Apr 16, 2011

Why :not just use two :not:

input:not([type="radio"]):not([type="checkbox"])

Yes, it is intentional