How to set an image as a background

  • Profile Image
    OVPFA
    Asked on February 13, 2018 at 02:16 PM

    Hi JotForm,

    I am wanting to have a fixed image as the background of my form, but when I select "fixed" in the advanced designer, it is blowing up the image and zooming way in.

    Is there a way that I can have it show the image like it does before I select "fixed" so it is the right size for me to have on my background? 

    I attached screenshots of what it is doing. I would like for it to appear like the top screenshot.

    Thank you!

  • Profile Image
    aubreybourke
    Answered on February 13, 2018 at 02:48 PM

    You can accomplish this with CSS.

    For example:

    .supernova {

    background-image:url('http://www.site.com/image.jpg');

    background-repeat: no-repeat;

    background-position: center top;

    background-attachment: fixed;

    background-size: cover;

    }

    How-to-Inject-Custom-CSS-Codes