In css, can select an element that follows an element using the +
operator. For example, I can select only inputs that directly follow labels by doing:
label + input {
color: red;
}
Is there a way to do the opposite, so like "not adjacent to"? In my example, is there a way to select all inputs that do not directly follow labels?
Edit: It needs to select ALL inputs that don't directly follow labels, including inputs that are in places with no labels whatsoever.