What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Inject CSS into Payment form with pictures

    Asked by rickvv on September 13, 2013 at 10:09 PM

    I read about injecting CSS into the form, and I sort of see how that works.

    http://form.jotformpro.com/form/32476900731958

    I have an order form with three pictures, linked with an URL. The thumbnails here on jotform constrains the images, and they look squashed.

    I did put in the css code from one of the examples, but it only applies to the first item in the payment wizard form.

    I'm not sure how to get the CSS to apply to all the images (they're all a little taller than they are wide).

    Is there a demo or tutorial for this kind of customization?
    Thanks!

    rickvv

    Page URL:
    http://form.jotformpro.com/form/32476900731958

    payment form inject CSS JotForm order form style size
  • Profile Image
    JotForm Support

    Answered by EltonCris on September 13, 2013 at 11:14 PM

    Hi,

    You can use .form-product-image class to target all product images.

    Example:

    .form-product-image{

    width:100px !important;

    height:100px !important;

    }

    Here's a visual guide on how to get field class and ID using Chrome Browser -> Inspect Element.

    Hope this helps. Feel free to message us should you have further questions. Regards!

  • Profile Image

    Answered by rickvv on September 18, 2013 at 08:41 PM

    Well, I think I see that, but when I enter that code, it only applies to the first image in the PaymentForm (I cna change it to 60px height, 50px width, and it displays as in this form here:

    http://form.jotformpro.com/form/32476900731958

    I'm confused...

    Thanks,

    rick

  • Profile Image

    Answered by Cesar on September 18, 2013 at 09:38 PM

    Hello Rick,
    Kindly add the form-product-image-with-options class to the injected code, like so:
     
    .form-product-image,.form-product-image-with-options {
    width:100px !important;
    height:100px !important;
    }

    Kindly let us know if you need further assistance. Thank you.