How to make form lightbox to be responsive? (avoid lightbox scrollbars)

  • sto_metallik
    Asked on March 29, 2017 at 3:02 PM

    I set width and height of the lightbox precisely to my form dimensions. When I try to fill all the fields and miss required field, the error message appears. But the lightbox gets a vertical scrollbar (( How to make lightbox to be responsive without scrollbars even considering error check out?

    And one more thing. I've noticed that usage of your lightbox prevents working of other scripts at my page ((

  • Kevin Support Team Lead
    Replied on March 29, 2017 at 5:28 PM

    I would suggest you to inject the following CSS code to make the scrollbar disappear: 

    .form-all {

        padding-top: 0px;

        margin-top: 0px;

        padding-bottom: 0px;

        margin-bottom: 0px;

    }

     

    .form-line{

    margin-top: 0px;

      margin-bottom: 0px;

    }

    This guide will help you doing so: How-to-Inject-Custom-CSS-Codes

    To avoid the conflict with the scripts you could add the noConflict function, here you will find more  details about it: http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ 

    Hope this helps.