-
cmerklingAsked on September 2, 2015 at 3: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,
-
victorReplied on September 2, 2015 at 5: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
-
cmerklingReplied on September 2, 2015 at 6:45 PMYes, 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
... -
BorisReplied on September 2, 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.