iframe alignment and scroll bars

  • Profile Image
    tyreid
    Asked on May 12, 2012 at 07:00 PM

    Hi there,

    I tried referring to the previous post on this but couldn't get it to work for my setup. I'm running a payment form as an iframe on my site, however I'm using an html document hosted on my server called 'pat' (http://pacificalpineguides.com/pat.html) so that I can modify the Authorize.net form for use in Wordpress. All looks fine except there's something going on with the iframe where it's not centering properly, most noticable by the submit button at the bottom. Any thoughts would be great! The code I'm using is

    <iframe allowtransparancy="true" style="width: 100%; height: 970px; border: none;" src="//pacificalpineguides.com/pat.html" frameborder="0" scrolling="no" align="left" width="320" height="240"></iframe>

  • Profile Image
    tyreid
    Answered on May 12, 2012 at 07:00 PM

    I mentioned scroll bars in the title because they show up if scrolling is set to 'auto'.

  • Profile Image
    idarktech
    Answered on May 13, 2012 at 01:09 AM

    Hi,

    Try re-embedding your iframe code using this:

    <iframe allowtransparancy="true" style="width: 555px; height: 1068px; border: none;" src="//pacificalpineguides.com/pat.html" frameborder="0" scrolling="no" align="left"></iframe>

    Then center your form button and other elements by adding this css code to your pat.html file, be sure to add it under existing css codes.

    .form-buttons-wrapper{

    text-align: center !important;

    }

    #id_101{

    width: 529px !important;

    }

    #input_125_cc_number{

    width: 230px !important;

    }

    Hope this helps. Please let us know if you need any further assistance. Thanks!