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

    Form resizes to mobile but image is cut off

    Asked by cmerkling on September 02, 2015 at 03:05 PM

    Hi,

    We have a form and all the fields except for the image resize when viewing on mobile.  Is there custom css code I can use to get the image to resize?

    Thanks,

    Page URL:
    http://www.jotform.us/form/52386231017146

    Mobile cut css code
  • Profile Image

    Answered by victor on September 02, 2015 at 05:44 PM

    Hi,

    You can re-size the image by going to the DESIGNER. Once you have select the image on the right panel you will see option to re-size the image width and height.

    Please let us know if this helps.

    Regards

    Victor M Larrea

     

  • Profile Image

    Answered by cmerkling on September 02, 2015 at 06:45 PM
    Yes, I understand that. However, the current size is perfect for desktop
    but not for mobile. If i re-size it to fit mobile, it will look really
    small on desktop. Is there a way to fit both?
    [image: photo]
    *C**ourtney Merkling*
    Operations & Logistics Manager, Seattle
    e: cmerkling@uber.com | w: www.uber.com/Seattle



    ...
  • Profile Image
    JotForm Support

    Answered by Boris on September 02, 2015 at 10:09 PM

    Yes, it is possible to make this image resizable according to your user's screen. Please try injecting the following custom CSS into your form, which should make the Form Cover responsive on smaller screens:

    .form-all::before {
        background-size: 100%;
        background-position: center;
    }

    @media only screen and (max-width:550px){
      .form-all::before {
        height: 200px !important;
        top: -210px;
      }
      .form-all {
        margin-top: 210px;
      }
    }
    @media only screen and (max-width:360px){
      .form-all::before {
        height: 180px !important;
        top: -190px;
      }
      .form-all {
        margin-top: 190px;
      }
    }

    You can do so by opening your form in the Designer (Setup & Embed > Designer):

    Then, simply paste the code into the textbox under the CSS tab:

    Here is a demo form with the custom CSS applied, so that you may test if this is the mobile responsiveness you were after:

    https://secure.jotformpro.com/form/52448341277963

    Please let us know how it goes.