What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Aligning the Image Source for lightbox form

    Asked by EMYEstetica on October 18, 2013 at 08:11 AM

    Based on this :

    <script src="//cdn.jotfor.ms/static/feedback2.js?3.1.1422" type="text/javascript">

    new JotformFeedback({

    formId:'32385559196972',

    base:'http://jotformpro.com/',

    windowTitle:'Вступить в клуб!',

    background:'#00736F',

    fontColor:'#FFFFFF',

    type:1,

    height:500,

    width:300

    });

    </script>

    <a class="lightbox-32385559196972" style="cursor:pointer;color:blue;text-decoration:underline;"><img src="your image link here!"/></a>


    I wanted to know how to set the button <IMAGE SOURCE>to the centre.

     

    Cheers

     

    lightbox form source style height image link
  • Profile Image
    JotForm Support

    Answered by ardy0689 on October 18, 2013 at 08:49 AM

    Hello you could wrap it between the

    and

    tag and centering it by adjusting the margin-left and margin-right to auto via an inline CSS style

    <div style="margin-left:auto;margin-right:auto;"><a class="lightbox-32385559196972" style="cursor:pointer;color:blue;text-decoration:underline;"><img src="your image link here!"/></a></div>

    Please let us know if the above suggestion aligns it to the center. If should in case it does not work please provide the webpage to where the lightbox is embedded so we can have a better look at it. Thanks.

  • Profile Image

    Answered by EMYEstetica on October 19, 2013 at 10:15 AM

    Nope, it doesn't work :(

    But it seems to work by putting some figure on the left margin.
    That is good enough. Thanks !

    Great support.

  • Profile Image

    Answered by Cesar on October 19, 2013 at 11:17 AM

    On behalf of my colleague, thank you for the reply. If you do need further support. do let us know. Thank you again.