Title: Problem with centering fancybox
Last modified: August 21, 2016

---

# Problem with centering fancybox

 *  Resolved [devmitrovics](https://wordpress.org/support/users/devmitrovics/)
 * (@devmitrovics)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-centering-fancybox/)
 * Hello,
    i have huge problem. MY Window is sticked to the bottom of page? I used
   this plugin lot of times but this error i see firs titme.
 * [http://www.mobilecommz.com/bss/products/led-tube-lighting/](http://www.mobilecommz.com/bss/products/led-tube-lighting/)
 * click on bottom image
 * [https://wordpress.org/plugins/easy-fancybox/](https://wordpress.org/plugins/easy-fancybox/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-centering-fancybox/#post-4700199)
 * Strange effect… First I thought it was the `box-sizing: border-box;` rule that
   applies to about all elements in the themes bootstrap.min.css but disabling that
   did not change it (much).
 * Then I looked at the page source and spotted the issue right on the first lines:
 *     ```
       <!-- Google Tag Manager -->
   
       <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MV4CT7"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
       <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-MV4CT7');</script>
   
       <!-- End Google Tag Manager -->
       ```
   
 * Move those lines to anywhere between the opening `<body>` and closing `</body
   >` tags. Make sure the doctype declaration (in your case `<!DOCTYPE html>`) is
   the absolute first thing any browser finds in the source code. Even a blank line
   before it might mess things up specially in older IE versions.
 *  Thread Starter [devmitrovics](https://wordpress.org/support/users/devmitrovics/)
 * (@devmitrovics)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-centering-fancybox/#post-4700200)
 * Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with centering fancybox’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [devmitrovics](https://wordpress.org/support/users/devmitrovics/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-centering-fancybox/#post-4700200)
 * Status: resolved