-
AuthorPosts
-
February 10, 2015 at 8:31 pm #203656
Hi there… the Submit button for my Contact Form 7 isn’t exactly centered. It needs to scoot over to the right about 12px, but I don’t see anywhere in the shortcode configuration that I can control this button’s alignment without all the preceding form fields also being affected.
How can I get this button into dead center where it belongs?
Thanks!
Site info to follow in a private reply…
-Brian
February 10, 2015 at 8:31 pm #203657This reply has been marked as private.February 11, 2015 at 9:04 am #204037Hi there,
Thanks for writing in! That is because of your Ajax loading image that you have used in your form. Usually we do not provide support for 3rd party plugins and we advice our customers to consult a developer or service for customization related inquiries.
However for this instance, you can try adding the following CSS rule into your Customizer, Custom > CSS section using the menu Appearance -> Customize.
.wpcf7-submit { display: block; margin: 0 auto; }
Thank you for your understanding.
February 11, 2015 at 9:20 pm #204570Thanks for explaining this! I tried using the code above, but to no avail.
I’m not sure why the Ajax loading image would be an exception for my form. I’m using it in pretty much the default mode, directly from the Backend Editor, by simply inserting a plain ‘Contact Form 7’ element.
This seems to be the default for X’s use of Contact Form 7 as an element, so why would my form have alignment issues?
Thanks for helping explain and hopefully solve this riddle. 🙂
February 12, 2015 at 3:24 pm #205298Hi there,
As we checked your site, we are glad you fixed this issue and works perfectly fine.
Enjoy!
February 12, 2015 at 9:47 pm #205559Actually, although it is *close* to centered, it’s a bit off. Exactly 8 pixels too far to the left.
So how can I add 8px to the left margin next to this ‘Submit’ button? I didn’t make any modifications to the way Contact Form 7 looks or behaves – I’m using a simple form, straight out of the Backend Editor element insertion tool for Contact Form 7, so I’m not sure why it’s behaving this way.
Thanks!
-BrianFebruary 13, 2015 at 6:03 pm #206222Hi Brian,
It’s centered, but both button and ajax loading image is inline in which alignment applies on them the same time.
Add this css too to drop the loading image under the button,
.ajax-loader { display: block; }
Cheers!
February 14, 2015 at 1:30 am #206398Brilliantly simple fix! Thank you!!
Take care…
February 15, 2015 at 6:17 am #206941You’re welcome.
-
AuthorPosts