Hi Jane,
Sure, I can help you with this. Styles for centering can be a bit finicky, and with a lot of different factors involved in some cases, so it’s generally best to work on a site-by-site basis.
Here’s the CSS you’ll need to center your contact form:
form#wpforms-form-1647 {
text-align: center;
}
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=date],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=datetime],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=datetime-local],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=email],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=month],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=number],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=password],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=range],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=search],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=tel],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=text],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=time],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=url],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 input[type=week],
div.wpforms-container-full .wpforms-form#wpforms-form-1647 select,
div.wpforms-container-full .wpforms-form#wpforms-form-1647 textarea {
margin-left: auto;
margin-right: auto;
}
In case it helps, here’s a tutorial from WPBeginner on how to add custom CSS like this to your site.
Last, I noticed that you have two CSS classes on the Message field of this form (wpforms-one-half
and wpforms-first
). So be sure to delete these classes to allow this field to be centered also (here’s a screenshot of where you can find these classes to delete them: https://cloud.supportally.com/1G1x2X3W0n0l).
I hope this helps! When you have a chance to give this a try, could you let me know how it goes?
Thanks! ??