Name Fields CSS Selectors

First Name

Container

example: name – first name container (span) – applies to all forms

body .gform_wrapper .gform_body .gform_fields .gfield .name_first {border: 1px solid red;}

example: name – first name container (span) – applies just to form ID #1

body #gform_wrapper_1 .gform_body .gform_fields .gfield .name_first {border: 1px solid red;}

example: name – first name container (span) – applies just to specific container (based on the unique parent element ID – replace “XX_X” with your actual element ID)

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .name_first {border: 1px solid red;}

Input

example: name – first name field (input) – applies to all forms

body .gform_wrapper .gform_body .gform_fields .gfield .name_first input {border: 1px solid red;}

example: name – first name field (input) – applies just to form ID #1

body #gform_wrapper_1 .gform_body .gform_fields .gfield .name_first input {border: 1px solid red;}

example: name – first name field (input) – applies just to specific container (based on the unique parent element ID – replace “XX_X” with your actual element ID)

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .name_first input {border: 1px solid red;}

Label

example: name – first name sub-label (label) – applies to all forms

body .gform_wrapper .gform_body .gform_fields .gfield .name_first label {color: red;}

example: name – first name sub-label (label) – applies just to form ID #1

body #gform_wrapper_1 .gform_body .gform_fields .gfield .name_first label {color: red;}

example: name – first name sub-label (label) – applies just to specific container (based on the unique parent element ID – replace “XX_X” with your actual element ID)

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .name_first label {color: red;}

Last Name

Container

example: name – last name container (span) – applies to all forms

body .gform_wrapper .gform_body .gform_fields .gfield .name_last {border: 1px solid red;}

example: name – last name container (span) – applies just to form ID #1

body #gform_wrapper_1 .gform_body .gform_fields .gfield .name_last {border: 1px solid red;}

example: name – last name container (span) – applies just to specific container (based on the unique parent element ID – replace “XX_X” with your actual element ID)

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .name_last {border: 1px solid red;}

Input

example: name – last name field (input) – applies to all forms

body .gform_wrapper .gform_body .gform_fields .gfield .name_last input {border: 1px solid red;}

example: name – last name field (input) – applies just to form ID #1

body #gform_wrapper_1 .gform_body .gform_fields .gfield .name_last input {border: 1px solid red;}

example: name – last name field (input) – applies just to specific container (based on the unique parent element ID – replace “XX_X” with your actual element ID)

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .name_last input {border: 1px solid red;}

Label

example: name – last name sub-label (label) – applies to all forms

body .gform_wrapper .gform_body .gform_fields .gfield .name_last label {color: red;}

example: name – last name sub-label (label) – applies just to form ID #1

body #gform_wrapper_1 .gform_body .gform_fields .gfield .name_last label {color: red;}

example: name – last name sub-label (label) – applies just to specific container (based on the unique parent element ID – replace “XX_X” with your actual element ID)

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .name_last label {color: red;}