Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@devmitrovics)

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with centering fancybox’ is closed to new replies.