css selector to match an element without attribute x [duplicate]
:not selector: input:not([type]), input[type=”text”], input[type=”password”] { /* style here */ } Support: in Internet Explorer 9 and higher
:not selector: input:not([type]), input[type=”text”], input[type=”password”] { /* style here */ } Support: in Internet Explorer 9 and higher
You can use the negation pseudo-class :not() against the :last-child pseudo-class. Being introduced CSS Selectors Level 3, it doesn’t work in IE8 or below: :not(:last-child) { /* styles */ }