css - HTML5 Not Highlighting Invalid Inputs Due To box-shadow -
i have form inputs following bootstrap class - form-control
. use html5 form validation on form. problem is, red highlight on invalid inputs don't appear because of inclusion of box-shadow
, border-color
styles.
how can make them appear styles applied? of styles applied own css , bootstrap's css.
try use css pseudo selectors:
input:required:invalid, input:focus:invalid, textarea:required:invalid, textarea:focus:invalid ...
if necessary have specify more powerful css selectors .form-control
Comments
Post a Comment