Title: Loading image at center
Last modified: August 22, 2016

---

# Loading image at center

 *  [imransilvake](https://wordpress.org/support/users/imransilvake/)
 * (@imransilvake)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/loading-image-at-center/)
 * I want the loading gif to be at center when loading.
    (vote loading gif, view
   results loading gif, Back to top loading gif)
 * vote and back to top gif are right now start at the left postion and view results
   loading gif starts at right postition. I want them center.
 * [https://wordpress.org/plugins/yop-poll/](https://wordpress.org/plugins/yop-poll/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/loading-image-at-center/#post-5445098)
 * Hi imransilvake,
 * For the Back to vote gif edit js/yop-poll-public.js file and in yop_poll_back_to_vote
   function replace
 * `jQuery('#yop_poll_back_to_vote_loading_img-'+ poll_id + unique_id ).css( 'border','
   none' );` with
 * `jQuery('#yop_poll_back_to_vote_loading_img-'+ poll_id + unique_id ).css( {'border':'
   none','display': 'block','margin-left': 'auto','margin-right': 'auto'} );`
 * For the vote loading gif edit js/yop-poll-public.js and in yop_poll_show_loading
   function, after the line below
 * `var target_loading_image = document.createElement('img');` add
 * `jQuery(target_loading_image).css('margin-left','40%');`
 * For the view results gif edit js/yop-poll-public.js and in yop_poll_view_results
   function, after
 * `jQuery('#yop_poll_result_link_loading_img-'+ poll_id + unique_id ).css( 'border','
   none' );`
 * add
 *     ```
       jQuery( result_link_loading_image).css(
               'margin-right', '70%');
           jQuery( result_link_loading_image).css(
               'margin-top', '22px');
       ```
   
 * Let us know if you need more help.
 * Regards,
 * YOP Team

Viewing 1 replies (of 1 total)

The topic ‘Loading image at center’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/loading-image-at-center/#post-5445098)
 * Status: not resolved