How to center the Contact Form 7 submit button

How to center the Contact Form 7 submit button

This is a very common question of WordPress users: how to centralize the contact form 7 submit button?

It’s easier than you think. I’ll show below.

How to center the Contact Form 7 submit button

To do this is very simple. You just need to create your contact form the way you want it, and add the following code in your CSS editor or theme editor:

input.wpcf7-form-control.wpcf7-submit {
   display: block;
   margin: 0 auto;
}

Ready, the result will be this:

How to center the Contact Form 7 submit button

I hope that you enjoyed.

Do you like the post? Please, leave your comment!

Wordpress Developer

Eduardo Villão

Product-oriented Software Engineer with a decade of experience shipping scalable solutions for global markets. Strong background in data-driven architecture, SaaS development, and high-traffic content platforms, with a relentless focus on performance and ROI.

Get first access to content updates

No spam, don't worry.

31 Responses

    1. Hi Erez.

      if you need set to a specific form use the form ID or page class before this css.

      ex. .home for form in home page or .single-post for forms in single post page.

      if you need more informations send me a mail.

  1. Yeah, we got the “center” part thank you. But the guy above asked how to align “left?” No answer? I am asking how to align the button to the “right?” Thanks.

  2. Thank You very much. The code works perfect. But without the hint from Mayapur Voice, i couldn’t use that code…

Leave a Reply

Your email address will not be published. Required fields are marked *