I'm doing this to set a border around input fields:
input[type=text], input[type=password], textarea { border: 1px solid #9BAF31;}
I have client-side validation that adds this class when errors occur:
.input-validation-error {
border: 1px solid #ff0000;
background-color: #ffeeee;
}
But only the background is set. The border is still the original color. How can i set it with the validation color?
!importantis a one shot sledgehammer, it is best avoided as it often leads to "I wish there was a double !important method" situations. Get the specificity right instead.