Jump to content

Recommended Posts

How can I get 2 iFrames one directly under the first?

Each time I try it I always get a large white gap? This is my code

<style>
    #frame {
        -ms-zoom: 0.68;
        -moz-transform: scale(0.68);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.68);
        -o-transform-origin: 0 0;
        -webkit-transform: scale(0.68);
        -webkit-transform-origin: 0 0;
    }    
    #frame1 {
        -ms-zoom: 0.68;
        -moz-transform: scale(0.68);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.68);
        -o-transform-origin: 0 0;
        -webkit-transform: scale(0.68);
        -webkit-transform-origin: 0 0;
    }
</style>

<iframe id="frame" src="site1" width="3000" height="800"></iframe>
<iframe id="frame1" src="site2" width="600" height="600"></iframe>

Share this post


Link to post
Share on other sites

That will happen because you are scaling them. A scaled element will still reserve the same amount of space it was occupying before it was scaled.

If you absolutely have to scale them, then you will have to wrap each one in a container that is the size of the iframe after scaling and set the container's overflow to hidden.

Share this post


Link to post
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

×