Logo
Welcome
Login  Sign up
Home Solutions Discussions

How can we help you today?

New support ticket
Check ticket status
Solution home GoodForms Integrations Verification

CSS styling guide Print

Created by: Alison Gianotto

Modified on: Fri, 5 Feb, 2021 at 3:55 PM


You can use standard CSS validation classes to control the display of valid and invalid form elements - such as:


/* Selects any valid <input> */
input:valid {
  background-color: powderblue;
}

/* Selects any invalid <input> */
input:invalid {
  background-color: pink;
}


(From the excellent documentation at https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation)


A
Alison is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Home Solutions
    Article views count