It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

iframe height and top issue

iframe height and top issue

Postby hindy0123 on Mon Nov 17, 2008 2:53 pm

Hi All,

I have an iframe in my page.
I change its height from a button inside the iframe using javascript. for example:
parent.document.getElementById('iframe').style.height="100px";

The problem is that if the iframe height was 500px for example, and I changed it to 100px then the whole iframe is shrink down. I mean that the 100px are the top 100px but they are appear in the button of the iframe and there are 400px empty at the beginning. Any Idea how to change it?

Thanks in advance
hindy0123
 
Posts: 0
Joined: Mon Nov 17, 2008 2:51 pm

Re: iframe height and top issue

Postby BennettRich on Fri Dec 12, 2008 3:19 am

Why not to use DIV`s?
BennettRich
 
Posts: 27
Joined: Wed Dec 10, 2008 9:23 am


Who is online

Users browsing this forum: No registered users and 7 guests