If they exist in programming)
If I have an HTML form with the following inputs:
<input type="text" /> <input type="password" /> <input type="checkbox" />
I want to apply a style to all inputs that are either type="text" or type="password" .
Alternatively, I would agree to all input, where type != "checkbox" .
It seems to me that I should do this:
input[type='text'], input[type='password'] { // my css }
Is there no way to do:
input[type='text',type='password'] { // my css }
or
input[type!='checkbox'] { // my css }
I looked around, and there doesn't seem to be a way to do this with a single CSS selector.
It doesn't matter, of course, but I'm just a curious cat.
Any ideas?
html css css-selectors
RPM1984 Aug 10 2018-10-10T00: 00Z
source share