Custom background image expands super large

  • lmforms
    Asked on January 24, 2017 at 9:02 PM

    My custom background image expands super large and distorted on all screen sizes and devices.

    The form is embedded via javascript.

    It looks normal in the JotForm builder preview. I used v4 beta to build it.

  • David JotForm Support Manager
    Replied on January 24, 2017 at 11:55 PM

    That is odd. The background image shows expanded, but when I cloned your form,  it shows fine in the cloned version: https://form.jotform.com/70239244947967 

    Custom background image expands super large Image 1 Screenshot 20

    Please try cloning the form to see if the issue gets debugged in your clone version: https://www.jotform.com/help/27-How-to-clone-an-existing-form-from-your-account 

    Let us know if you need more help.

  • lmforms
    Replied on January 25, 2017 at 6:33 PM

    The cloned form is on this page: https://www.farm-equipment.com/farm-catalog/home2

    I get the same behavior. Yes, it looks good when previewing in JotForm. But once I paste to a page in my CMS then the enlarged scaling occurs. 

    I narrowed it down to the "cover" attribute. If I don't use "cover" and instead use "fixed" or "repeat" then the image displays correctly.

    Do you have any work-around ideas? Custom CSS to further define the "cover" attribute? Edit the resolution and pixel size of the image?

  • David JotForm Support Manager
    Replied on January 25, 2017 at 9:01 PM

    That's odd, if you look at your form's direct link, the background is shown fine: https://form.jotform.com/70246817927161 

    Custom background image expands super large Image 1 Screenshot 20

    Please try removing your form from your page, and embed it again using the Iframe code: https://www.jotform.com/help/148-Getting-the-form-iFrame-code