Jump to content
SimonGillham

iFrames

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...