How can I set alignment on image checkboxes?

  • schenkco
    Asked on February 10, 2016 at 1:07 PM

    Hi, for some reason the alignment (or padding) for my image checkboxes is set so it's starting at 2/3 of the page. How do I remove the extra space on the left? Thanks!

  • Kevin Support Team Lead
    Replied on February 10, 2016 at 2:33 PM

    Paste this CSS code in the CSS tab, just open the wizard of your widget and you will find it on the right side:

    li {

        margin-left: 28px;

    }

    How can I set alignment on image checkboxes? Image 1 Screenshot 30

    How can I set alignment on image checkboxes? Image 2 Screenshot 41

    Hope this helps.

  • schenkco
    Replied on February 10, 2016 at 3:37 PM

    Hi Kevin,
    My apologies-perhaps my explanation was misleading. I thought it was the image checkboxes causing the alignment issue but I think it's affecting my entire form. Is there a way to set the whole form to be left justified? For instance, on our website the form is showing up 2/3 of the page but ideally I would like everything left aligned. I find there is too much padding on the left and on the top. Please see screenshot attached (blue outline is where I would like the form to be).
    How can I set alignment on image checkboxes? Image 1 Screenshot 20

  • Kevin Support Team Lead
    Replied on February 10, 2016 at 4:51 PM

    You may try injecting this CSS code in your form, then re-embed it again:

    .form-all{

     padding:0px;

    margin:0px;

    }

    If it does not reduce the space, please provide us the URL where you have embedded your form, it will help us to make tests and provide you the exact code to align properly your form.

  • schenkco
    Replied on February 10, 2016 at 6:07 PM

    Awesome, we're so close! It's left aligned but I'm wondering if we can tighten up the gap on the top. Looks like there's still 10-20px padding.

    https://form.jotform.com/60406601077246

     

    Thanks!

  • Chriistian Jotform Support
    Replied on February 11, 2016 at 12:35 AM

    You can inject the following css code to your form.

    .jotform-form {

        padding: 0px!important;

    }

    .form-line {

        padding: 0px 36px!important;

    }

    Here's a guide on how to inject css: How to Inject Custom CSS Codes

    How can I set alignment on image checkboxes? Image 1 Screenshot 20

    You can also follow this link to see the cloned form where I tested the css: https://form.jotform.com/60410435966960

    If you want to clone it to your account, you can follow this guide: How to Clone an Existing Form from a URL

    Let us know if you need further assistance.

  • schenkco
    Replied on February 11, 2016 at 10:07 AM

    Good stuff, it works! Thank you!