How Can I Change the Size of the Preview Container?

  • zipout
    Asked on March 16, 2016 at 11:20 AM
  • mert JotForm UI Developer
    Replied on March 16, 2016 at 12:16 PM

    By injecting some custom CSS to your form, you can easily adjust the related areas's width and size.

    Below, you will find the necessary CSS rules:

     

    .form-all {

        width: 100% !important;

        height: 500px !important;

        max-width: 500px;

    }

     

    Above, you can change the maximum allowed width by changing the number on the orange area. On the green marked area, the actual width of the form can change (I put "100%" value to extend it automatically when it is allowed; but you can add a "px" value like the others.). Finally, you can edit the height of the form on the blue marked area.

    On the following, you can see the final version of your form:

    How Can I Change the Size of the Preview Container? Image 1 Screenshot 20

     

    If you need any extra help, please do let us know.

    Regards.

  • zipout
    Replied on March 16, 2016 at 5:10 PM

    My problem seems coming from preview window. I tried a lot of combination following your advise.

    Other question: is it possible to have the buttons on the same line?

    How Can I Change the Size of the Preview Container? Image 1 Screenshot 20

  • Mike
    Replied on March 16, 2016 at 7:07 PM

    It looks better on a physical mobile device:

    How Can I Change the Size of the Preview Container? Image 1 Screenshot 30

    Landscape view:

    How Can I Change the Size of the Preview Container? Image 2 Screenshot 41

    Unfortunately, the preview tool will not always simulate the mobile view correctly compared to the actual device.

    If you need any further assistance on this, please let us know.