View Single Post
Old 08-19-2012, 11:21 PM   PM User | #1
machepap
New to the CF scene

 
Join Date: Feb 2011
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
machepap is an unknown quantity at this point
Styling to highlight form validation errors with CSS

I'm trying to style the results of a form's validation when there are errors. I'm using Shopp in Wordpress. So far, I've figured out how to get the erroneous fields to change (highlight) background colors, only I haven't been able to make this work for fields in which there is a drop-down rather than just an input box. Here's the code that works. Hopefully this is enough info to go on:

Code:
 #shopp form .required {
background-color: #a8d5d5;
    }

    #shopp form input.error {
background-color: #FFC5B0;
    }
Thanks for your help!

Amy
machepap is offline   Reply With Quote