Form resizes to mobile but image is cut off

  • Profile Image
    cmerkling
    Asked 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,

  • Profile Image
    victor
    Answered 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
    cmerkling
    Answered 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
    Boris
    Answered 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.