Hidden ajax-loader shifts Submit button
-
Problem.
The Submit button is not centred horizontally. See screenshot:
https://www.dropbox.com/s/yrrqqeh3jgp58wk/Submit_button_not_centred.png?dl=0Troubleshooting.
One of the recent updates added a new feature: ajax-loader indicator (a small circle rotating inside a bigger circle) added next to the Submit button. This indicator is shown briefly after the Submit button is pressed, and normally it is hidden using “visibility: hidden;” CSS style, but this CSS style doesn’t hide the margins so the indicator occupies the space, in the hidden state too, and so pushes the Submit button to the left.Suggested solution.
In file contact-form-7/includes/css/styles.css
replace:.wpcf7 .ajax-loader { visibility: hidden; display: inline-block;
with
.wpcf7 .ajax-loader { visibility: hidden; display: none;
and
.wpcf7 form.submitting .ajax-loader { visibility: visible;
with
.wpcf7 form.submitting .ajax-loader { visibility: visible; display: inline-block;
- The topic ‘Hidden ajax-loader shifts Submit button’ is closed to new replies.