The following css would make all inputs red inside a div class="field_error"
div.field_error input{
color: red;
border: 2px solid #FF0000;
}
Is it possible to say
case 1) exclude type=button ?
case 2) only apply type=text ?
How can I do these two cases?
Thanks,
Case 1:
You can use the CSS3 :not() tag to exclude the inputs of the type button:
Case 2:
This only selects the text inputs and colors them red: