In css, you can select the element that follows the element using the operator +. For example, I can select only those inputs that immediately follow the labels, doing:
label + input {
color: red;
}
Is there a way to do the opposite, since "does not adjoin"? In my example, is there a way to select all inputs that do not directly follow labels?
Edit: He should select ALL inputs that do not directly follow labels, including inputs that are in places without labels.
Pete source
share