L'image de fond de mon formulaire sencée être en background-mage:contain; ne l'est pas sur mobile

  • Profile Image
    alixgallinotti
    Demandé le 20 mars 2026 à 04:55

    Bonjour

    L'image de fond de mon formulaire sencée être en background-mage:contain; ne l'est pas.


    En effet, la balise <html> n'a pas de "viewport", ce qui fait que le redimensionnement n'est pas effectué sur mobile

    Je vous ai mis en PJ le résultat attendu, et ce que ça donne sur téléphone.


    Merci

    Résultat normalement voulu :

    Limage de fond de mon formulaire sencée être en background mage:contain; ne lest pas sur mobile Image 1 Screenshot 30

    Résultat actuel :

    Limage de fond de mon formulaire sencée être en background mage:contain; ne lest pas sur mobile Image 2 Screenshot 41

  • Profile Image
    Nikola Jotform Support
    Répondu le 20 mars 2026 à 07:36

    Hi alixgallinotti,

    Thanks for reaching out to Jotform Support. Our French Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in French, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, I was able to replicate the issue you reported only on iPhone. On Android phones, the background is displayed properly. You can fix the issue on iPhone by Injecting CSS Codes into your form. Let me walk you through it:

    1. First, copy this code:

    @media screen and (max-width: 480px) {
    .supernova {
    background-size: contain !important;
    }
    }

    2. In Form Builder, click on the Paint Roller icon on the right side of the page to open Form Designer.

    3. Now, in the Form Designer menu, click on the Styles tab, scroll down and paste the code into the Inject CSS Code box. That’s it. The code is automatically saved.

    Limage de fond de mon formulaire sencée être en background mage:contain; ne lest pas sur mobile Image 1 Screenshot 20

    Give it a try and let us know how it goes.

Your Reply