This should get you close. The forms aren't in tables like your current form so they're not going to be exactly the same. You may have to tweak it a bit to suit.
/* apply styles to the labels */
body .gform_wrapper .gform_body .gform_fields .gfield .gfield_label {
font-family: Tahoma, Geneva, sans-serif;
font-size: 13px;
color: #d63a00;
text-decoration: none;
font-weight: bold
}
/* apply styles to all of the standard text inputs and select boxes */
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=tel],
body .gform_wrapper .gform_body .gform_fields .gfield input[type=password],
body .gform_wrapper .gform_body .gform_fields .gfield select,
body .gform_wrapper .gform_body .gform_fields .gfield textarea {
border: 2px solid #c4cbd0;
background-color: #f4f3f3;
font-family: Tahoma, Geneva, sans-serif;
font-size: 13px;
color: #182402;
text-decoration: none;
font-weight: bold;
vertical-align: middle
}
/* apply focus styles to the inputs */
body .gform_wrapper .gform_body .gform_fields .gfield input[type=text]:focus,
body .gform_wrapper .gform_body .gform_fields .gfield input[type=email]:focus,
body .gform_wrapper .gform_body .gform_fields .gfield input[type=url]:focus,
body .gform_wrapper .gform_body .gform_fields .gfield input[type=tel]:focus,
body .gform_wrapper .gform_body .gform_fields .gfield input[type=password]:focus,
body .gform_wrapper .gform_body .gform_fields .gfield select:focus,
body .gform_wrapper .gform_body .gform_fields .gfield textarea:focus {
border: 2px solid #d63a00;
background-color: #ffffff
}
Just study the visual guide and CSS targeting samples linked above and in the documentation and you'll get the hang of it pretty quickly.
Posted 13 years ago on Friday March 4, 2011 |
Permalink