WordPress.org

Support

Support » Plugins and Hacks » Iframe content size works in Chrome, not so well in FF and IE

Iframe content size works in Chrome, not so well in FF and IE

  • I am using Lightbox primarily to display iframe content. I am able to get it to work properly in Chrome, but not so much in FireFox or Internet Explorer. The Lightbox opens at the correct size, but the iframe inside of it does not.

    Could you please tell me what I am doing wrong?

    Here is a link: http://wp.me/p3uypr-ek

    please try the “Click here to find the fees you pay at your company‚Ķ” link on the page.

    http://wordpress.org/extend/plugins/lightbox-plus/

Viewing 1 replies (of 1 total)
  • i believe i figured it out.. i needed to put the height and width not only in the height and witch parts of the iframe tag, but also in the style section. Code looks like this and works:

    <div style="display:none" align="center" valign="middle" width="100%" height="100%">
        <div id="lbp-inline-href-2" style="padding: 0px;background: #fff" align="center" valign="middle" width="100%" height="100%" >
            <iframe src="http://google.com" style="height:97%;width:97%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="97%" width="97%" marginwidth="10" marginheight="0" hspace="10" vspace="0"></iframe>
        </div>
    </div>
    
    <a class="lbp-inline-link-2" href="#" title="Blah"><h3>Click Here</h3></a>
Viewing 1 replies (of 1 total)
  • The topic ‘Iframe content size works in Chrome, not so well in FF and IE’ is closed to new replies.