WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
Iframe content size works in Chrome, not so well in FF and IE (2 posts)

  1. proapp
    Member
    Posted 1 year ago #

    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/

  2. proapp
    Member
    Posted 1 year ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic