• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1042
  • Last Modified:

Firefox iframe 100% - solution

I have a solution to a problem that has been closed in a previous post but i am not sure how i can contribute this to the experts community otherwise...

iframe in firefox does not size to 100%

function calcHeight(name)
  //find the height of the internal page
  document.getElementById(name).height = 0;
  var the_height=

  //change the height of the iframe

<iframe id="main" name="main" onLoad="calcHeight('main');" src="yourcontent.htm" height="100" width="100%" style="border:0px" FRAMEBORDER="0" scrolling="no"></iframe>


it seems to not work though if you use the following in the pages:

<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
1 Solution
Have you tried adding marginwidth=1 marginheight=1 on the iframe definition?  I know you have defined that you have no borders, but you never know.  I also assume you meant to type height="100%" and not just "100".
kenitechAuthor Commented:
hey, this solution works for me...i'm just sure how to 'announce' it as a solution to others. is that something that people do on experts??
There's an "Accept" button in the upper right corner of giltjr's post. Click that to accept his answer as a solution.
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Ah, I think I understand.  You are not asking "How to ..."  You found a solution and want to let everybody else know.

Looking at your prior question it seems that you found what the solution was to your own question.  You posted your finding in that question.  That is all you need to do.  If somebody else is having the same problem, when they do a search they should find your prior question with the appropriate answer (that you found on your own).
Marc ZCommented:
Thank you for helping the community.  That's what we are truly here for. But you do not need to use up your points to help others.

As giltjr said, you have posted your findings in the other post.  Follow the instructions here to request a refund.

Marc ZCommented:
I believe the original poster was actually giving the community a solution, not requesting help.

Do not Accept.  Refund Points.
PAQed with points refunded (20)

Community Support Moderator
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now