Some of the fields on my contact form are white and some are black - I'd like them to be all white. How do I do that?
jill :)
Some of the fields on my contact form are white and some are black - I'd like them to be all white. How do I do that?
jill :)
If the fields are different this is a theme CSS issue. We don't set background colors on the fields, it's coming from your theme. If you post a link to a page on your site where we can view the form we can make some CSS suggestions for you to implement.
Soot - sorry about that! Page is http://50.22.108.32/~tifflpit/contact/
j :)
Without seeing your form, I can't say what the actual problem is..probably the HTML5 input types, but you can use some custom CSS rules added to the end of your theme stylesheet to reset the input styles for your forms.
[css]
body .gform_wrapper .gform_body .gform_fields .gfield input[type=text],
body .gform_wrapper .gform_body .gform_fields .gfield input[type=email],
body .gform_wrapper .gform_body .gform_fields .gfield input[type=url],
body .gform_wrapper .gform_body .gform_fields .gfield input[type=password],
body .gform_wrapper .gform_body .gform_fields .gfield input[type=tel],
body .gform_wrapper .gform_body .gform_fields .gfield select,
body .gform_wrapper .gform_body .gform_fields .gfield textarea {
background-color:#fff;
color:#000
}
There are more examples here in the documentation as well
http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples
Yep, you're using the HTML5 input types (email, phone, etc) that aren't defined in your theme stylesheets. You can add those input types to your style rules like this..
orange.css line 41 - change to
[css]
input[type="text"],
input[type=email],
input[type=url],
input[type=password],
input[type=tel]{
background: url("orange/input.jpg") repeat-x scroll center bottom #FFFFFF;
border: 1px solid #D2D2D2;
color: #2B2B2B;
}
style.css line 97 - change to
[css]
input[type="text"],
input[type=email],
input[type=url],
input[type=password],
input[type=tel] {
font: 1.3em/1em Arial,Helvetica,Tahoma,sans-serif;
padding: 7px 10px;
width: 570px;
}Thanks for the help, but the fields are all still black. I told the client NOT to choose that theme, but it is what it is.
Anything else I can look at?
j :)
easiest thing to do is to remove the CSS rule on line 53 of your orange.css file. If you can't do that, then you'll need to be more specific with your new rule to override it. Something like this example:
[css]
body #page.art input[type="text"],
body #page.art input[type=email],
body #page.art input[type=url],
body #page.art input[type=password],
body #page.art input[type=tel],
body #page.art textarea,
body #page.art select
{
background-color:#fff
}You rock! That last one worked!
Thanks a million!
j :)