Jump to content

iframe - auto size


Spunky

Recommended Posts

I have a div that is designed to change height depending on the content within. I don't want to set a solid height because I want it to be dependent on the content within. I'm trying to put an iframe into this div but the problem I am having...and based off some research a lot of people have... is that the iframe does not fill the container it is in and instead adds scrollbars. I have tried to change the overflow property to hidden of both the div it is in and for the body as I have seen suggested, but nothing is working. Does anyone have any suggestions or resources for iframes on how to solve these sort of issues?

Link to comment
Share on other sites

Try to contact justsomeguy OR Ingolme. Send them a PM. But please remember that they are Very Busy with their Work.

Link to comment
Share on other sites

Try to contact justsomeguy OR Ingolme. Send them a PM. But please remember that they are Very Busy with their Work.
OR, just use the forum as its intended, and let people openly ask and get questions answered here "in the open", as it were, so everyone can benefit.
Link to comment
Share on other sites

Perhaps you should use a server-side language to include the content on your page instead. For the <iframe> you would need to use Javascript to set the height of the iframe based on the height of the content in it. Here are some threads where this was discussed in the past:http://w3schools.invisionzone.com/index.php?showtopic=39905http://w3schools.invisionzone.com/index.php?showtopic=40227http://w3schools.invisionzone.com/index.php?showtopic=25211

Link to comment
Share on other sites

Ok, that is what I thought I might end up having to do. Thank you for the links. I will look into JavaScript. Yes, I know there are a couple of people(moderators) in these forums that seemingly have all the answers, that's why I am patient though waiting for a response. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...