OK, so in HTML5 browsers you can have:
<input class="txt-box" type="email" name="email" rel="required" />
When the email is not in the proper format it puts a red box around it.
My question is: what is the CSS that determines that style?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depends on the browser. This should cover your bases:
Test out the effect in a compliant browser:
IE7 compliance would require:
https://developer.mozilla.org/en/CSS/%3Ainvalid
Example: http://jsfiddle.net/AlienWebguy/cUgW4/