Name Fields CSS Selectors

Name Fields CSS Selectors

First NameContainerInputLabelLast NameContainerInputLabel

First Name
Container
example: name – first name container (span) – applies to all forms
1body .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
1body #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)
1body #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
1body .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
1body #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)
1body #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
1body .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
1body #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)
1body #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
1body .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
1body #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)
1body #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
1body .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
1body #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)
1body #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
1body .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
1body #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)
1body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .name_last label {color: red;}

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注