Answers for "css on field blank red border"

CSS
0

css on field blank red border

input,
textarea {
  margin: 5px 0;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input:invalid,
select:invalid,
textarea:invalid {
  border-color: red;
}
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language