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 7732099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:38:48+00:00 2026-06-01T06:38:48+00:00

Just today I noticed on our WordPress blog that the Facebook iframe is showing

  • 0

Just today I noticed on our WordPress blog that the Facebook iframe is showing up as a blank, bordered box in the middle of my page.

The problem is that when Facebook’s JS injects the content, it ends up with a div:

<div id="fb-root" class=" fb_reset">
    <div style="position: absolute; top: -2000px;">
        ...iframes here...
    </div>
</div>

That “top: -2000px” is not enough to get it off of the visible screen, so it’s stuck in the middle of my page.

Is there some way to fix this? I can do something hacky like hide the #fb-root element or shove it way off the screen. That’s the one div that’s actually in my code — the rest, including the offending style attribute, are injected by FB’s code.

My code just looks like:

<div id="fb-root"></div>
<script>(function(d, s, id) {
                      var js, fjs = d.getElementsByTagName(s)[0];
                      if (d.getElementById(id)) {return;}
                      js = d.createElement(s); js.id = id;
                      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
                      fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="(actual URL here)" data-send="false"
        data-layout="button_count" data-width="150" data-show-faces="false"></div> 
  • 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-01T06:38:50+00:00Added an answer on June 1, 2026 at 6:38 am

    Looks like Facebook fixed the bug, because the problem has disappeared.

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

Sidebar

Related Questions

I just noticed today that a website I am creating has the WWW or
So I've just installed XAMPP today, and I noticed that the index.php had a
Just today I noticed a strange behavior in an object model that was previously
I just noticed today, that when I compile and run a new XNA 4.0
We created an application profile using our company's Facebook account. Today, I've just finished
I just noticed today that I have got lots of spam links in my
So today I just came across the 'live()' function that binds any future and
I've just recently begun to use markdown and have noticed that any markdown within
Why is: if(x!=y!=z) handled as: x=1 y=1 z=2 ?? I just noticed it today.
I noticed today that SO uses magic URLs in the form. For example, a

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.