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

  • Home
  • SEARCH
  • 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 6231431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:56:02+00:00 2026-05-24T09:56:02+00:00

Another issue related to the Facebook Like iframe: I simply do not understand where

  • 0

Another issue related to the Facebook “Like” iframe: I simply do not understand where its width comes from. Look at the following code

<html>
<body>
Test<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.google.com&amp;send=false&amp;layout=button_count&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe>Test
</body>
</html>

which is a minimal demonstration of including Facebook’s “Like” button in a page. You will notice that the words “Test” surrounding the button are spaced quite far apart. Inspector tools reveal that the width of the iframe is precisely 300px. However, browsing through the DOM tree of the iframe, I cannot find a single element or style that would cause the iframe to expand to that width. No CSS used by the page loaded within the iframe even mentions anything related to 300px.

This looks weird to me but is consistent across browsers. Ultimately, I would like the iframe to simply fit its contents of course (see my previous question), but for now, I’d be content to simply know why the heck it even expands to 300px width in the first place.

  • 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-05-24T09:56:03+00:00Added an answer on May 24, 2026 at 9:56 am

    I have at last solved this mystery at least:

    300px x 150px are the default iframe dimensions in Firefox, Chrome and maybe some other browsers. It’s a shame that the inspector does not show that.

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

Sidebar

Related Questions

I have another issue related to Views, and i've ended up here dealing with
related to another issue I found out that: if I want to display BigDecimal.ZERO
I'm having another iOS related issue. This time relating to addSubView on a UIView.
This is related to another question I asked last week, but the current issue
This is related to my another post multithreading issue with wx.TextCtrl (or underlying GTK+)
I am working with facebook-ios-sdk, It working fine But I am facing issue related
so i'm following the OpenGL superbible 5 and have encountered yet another issue: I'm
In struggling with a solution to this problem I've run into another, related issue:
The issue here is related to another question I had... I have millions of
another issue in IE 6... link The navbar link list has a border applied

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.