| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 08:40:11 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/submit-button-css-selectors/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: HIT
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=Mze3%2FZfrw5IZbhYZl%2Bg7yvDm%2FwTcqfJ5nN1zSqdXJcfvIDp5tJuD0M4o%2BDVFO9R%2FrZepi8688XJV4vWK%2FWUjUU3%2Bb5jCTp4AEf%2B%2FHdyvgtVc6IWG"}]}
cf-ray: 9b4782fc79729dfa-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 08:40:12 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=mkt%2BhvN54MtVSQXEOnU2WzMmH7VRIQKDnoia4oTVmL18YvS61iUMGIchyYe%2BozB68%2BUa%2F44r3bRmhYFcrwudjy99HrdiJnah4SjeFRJ6HWiLGl9o"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4783016f089dfa-BLR
Submit Button CSS Selectors - Gravity Forms Documentation
Submit Button CSS Selectors
Here’s how to apply styles to Gravity Forms submit buttons. You can utilize these selectors to apply any additional styling that you may need.
Basic Targeting
Submit Button
- example: the form submit button (input) – applies to all forms
body .gform_wrapper .gform_footer input[type=submit] {border: 1px solid red} - example: the form submit button (input) – applies just to form ID #1
body #gform_wrapper_1 .gform_footer input[type=submit] {border: 1px solid red}
Submit Button (image)
- example: the form submit button (image) – applies to all forms
body .gform_wrapper .gform_footer input[type=image] {border: 1px solid red} - example: the form submit button (image) – applies just to form ID #1
body #gform_wrapper_1 .gform_footer input[type=image] {border: 1px solid red}
Use Case Examples
Basic Example
body .gform_wrapper .gform_footer input.button,
body .gform_wrapper .gform_footer input[type="submit"] {
color: #ffffff;
padding: 4px 10px;
border: 1px solid rgba(114, 114, 114, 0.4);
border-radius: 3px;
box-shadow: 0 1px 0px rgba(114, 114, 114, 0.3);
background-color: #0096d6;
/* Vendor prefixes for older browsers */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-moz-box-shadow: 0 1px 0px rgba(114, 114, 114, 0.3);
-webkit-box-shadow: 0 1px 0px rgba(114, 114, 114, 0.3);
}
Hover Example
body .gform_wrapper .gform_footer input[type="submit"]:hover {
border: 1px solid rgba(114, 114, 114, 0.6);
background-color: #444444;
}
Active State Example
body .gform_wrapper .gform_footer input[type="submit"]:active {
top: 1px;
}
Hidden Button
Using the usual display:none; to hide the button will result in the form submission handler aborting the submission. The following example shows an alternative method to hide the button without causing any trouble.
body #gform_wrapper_1 .gform_footer input[type="submit"] {
visibility: hidden !important;
position: absolute !important;
left: -9999px !important;
}