Number Field CSS Selectors

Container

example: number field container – applies to all forms (div)

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

example: number field container – applies just to form ID #1 (div)

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

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

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

Input

example: number input – applies to all forms (input)

body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_number input {color: red}

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

body #gform_wrapper_1 .gform_body .gform_fields .gfield .ginput_container_number input {color: red}

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

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .ginput_container_number input {color: red}

Range Instructions

example: Instructions for range allowed – applies to all forms (input)

body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_number div.instruction {color: red}

example: Instructions for range allowed – applies just to form ID #1 (input)

body #gform_wrapper_1 .gform_body .gform_fields .gfield .ginput_container_number div.instruction {color: red}

example: Instructions for range allowed – applies just to specific container (based on the unique parent element ID – replace “XX_X” with your actual element ID) (input)

body #gform_wrapper_1 .gform_body .gform_fields #field_XX_X.gfield .ginput_container_number div.instruction {color: red}