The different input types currently used in Gravity Forms are below.. You'll see these if you have the HTML5 output option enabled.
Text
[css]
body #gform_wrapper_1 .gform_body .gform_fields .gfield input[type=text] {border:1px solid red}
Email
[css]
body #gform_wrapper_1 .gform_body .gform_fields .gfield input[type=email] {border:1px solid red}
Telephone
[css]
body #gform_wrapper_1 .gform_body .gform_fields .gfield input[type=tel] {border:1px solid red}
Website URL
[css]
body #gform_wrapper_1 .gform_body .gform_fields .gfield input[type=url] {border:1px solid red}
Number
[css]
body #gform_wrapper_1 .gform_body .gform_fields .gfield input[type=number] {border:1px solid red}
Password
[css]
body #gform_wrapper_1 .gform_body .gform_fields .gfield input[type=password] {border:1px solid red}
You may still want to target them specifically via inheritance from their parent item ID rather than applying the properties globally based on the shared class name. You can refer back to the samples in the documentation for more information.
http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples
Posted 13 years ago on Tuesday July 5, 2011 |
Permalink