Can't seem to get it to centre via iframe: its currently ranged left

  • parnellswimclub
    Asked on March 30, 2014 at 6:09 AM

    Hey i have this code below:

    Cant seem to get it to centre via iframe: its currently ranged left.

    is there anyway to easliy change this code so it is centered?????

     

     

     

    <iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotform.co/form/40878531264863" frameborder="0" style="width:100%; height:457px; border:none;" scrolling="no"></iframe>
    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    Jotform Thread 355047 Screenshot
  • Jeanette JotForm Support
    Replied on March 30, 2014 at 2:11 PM

    The form seems to be ok in the stand alone version, however, you have probably embedded this form in a webpage of your.

    Can you please share with us the URL so we can inspect the page and advice you further?