Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9317015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:46:17+00:00 2026-06-19T02:46:17+00:00

I was looking and trying an entire day but couldn’t find one right solution

  • 0

I was looking and trying an entire day but couldn’t find one right solution for this problem. The part I need to be centered is always top left in FF and IE, Safari seems to be more bottom left…

this is all code you need to try, copy, paste and click…

big screen is good to see the problem doesnt looks to bad on small screens

thanks for help

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="http://fancyapps.com/fancybox/source/jquery.fancybox.pack.js?v=2.1.4"></script>
<link rel="stylesheet" type="text/css" href="http://fancyapps.com/fancybox/source/jquery.fancybox.css?v=2.1.4" media="screen" />
<script type="text/javascript">
    $(document).ready(function() {
        $(".google_iframe").fancybox({
            'width'             : '75%',
            'height'            : '75%',
            'autoScale'         : false,
            'transitionIn'      : 'none',
            'transitionOut'     : 'none',
            'type'              : 'iframe'
        });
    });
</script>
</head>
<body>
<a class="google_iframe" href="https://maps.google.com/maps/ms?ie=UTF8&amp;msa=0&amp;msid=202414688179067925321.0004d62815a849d23c081&amp;t=h&amp;ll=43.36373,16.508332&amp;spn=1.617251,3.364563&amp;output=embed">
    click here for fancy
</a>
</body>
</html>

jsFiddle

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:46:18+00:00Added an answer on June 19, 2026 at 2:46 am

    The issue seems to be created when you try to pre-load the fancybox iframe (default value is true). As a workaround just disable iframe pre-loading within your fancybox custom script like :

    $(document).ready(function () {
        $('.google_iframe').fancybox({
            // 'autoScale'    : false, // not valid in v2.x, use autoSize instead
            // 'transitionIn' : 'none', // not valid in v2.x, use openEffect instead
            // 'transitionOut': 'none', // not valid in v2.x, use closeEffect instead
            width      : '75%',
            height     : '75%',
            autoSize   : false,
            openEffect : 'none',
            closeEffect: 'none',
            type       : "iframe",
            iframe     : {
               preload : false // this will prevent to place map off center
            }
        });
    });
    

    … notice that I commented out some API options for v1.3.4 that are not valid in v2.x

    See JSFIDDLE … or full page see http://jsfiddle.net/Sy8F8/show/lite/, then you can compare it with your full page (not centered) jsfiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking around trying to see if anybody has asked this before. I don't
Sorry if this has been asked before but I've tried searching and can't find
I've wasted my entire day trying to use the minimax algorithm to make an
There is one IP (from China) which is trying to download my entire website.
I am trying to highlight a part of the text on my website. This
I've just started looking into Amazon's DynamoDB. Obviously the scalability appeals, but I'm trying
I'm looking at trying to optimise a particular function in a PHP application and
I have been looking at trying to differentiate between editing states in my UITableView.
So I am a little confused, I have been looking around trying to determine
I have been trying and trying and looking for ways/tutorials on how to add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.