How to enlarge product images of payment question on mouse hover?

  • Profile Image
    venco
    Asked on February 17, 2015 at 11:04 AM
  • Profile Image
    Ben
    Answered on February 17, 2015 at 12:11 PM

    I presume that this is the jotform that you want to have the product images a bit larger once the mouse goes over them: http://www.jotformeu.com/form/50464404503345

    As mentioned on the previous thread you can use such code as this:

    .form-product-item img:hover {
      height: auto;
      width: 200px;
    }

    Now with it I would also recommend adding this code:

    .form-product-item.hover-product-item {
        width: 100%;
    }

    Now this will only enlarge the image if you move the mouse right over it, so if you want to get it to 'grow' even if you are on the product itself, you can add something like this:

    .form-product-item.hover-product-item:hover img {
        height: auto;
        width: 200px;
    }

    I do see that you have already added this code:

    .form-product-item img:hover {
        height: 55%;
        width: 55%;
    }

    Which should work for you, but I would always suggest adding such code at the bottom of the style section - the same goes for the one I had suggested.

    You can see here how to add it: Inject Custom CSS Codes

    Do let us know if you have any questions along the way and we would be happy to assist with them :)