Custom Size for one image?

  • SPCS
    Asked on March 4, 2019 at 1:26 PM

     I am looking to change the size of only a few images in my order form. How do I enter the CSS code to do that without changing all of them?


    Within the link, I want the yellow image to go all the way across the form and keep the products the smaller size.

  • Alan_D
    Replied on March 4, 2019 at 3:05 PM

    You can reach the yellow image and set its width 100% with this code:

    #cid_42 > div > div > span:nth-child(1) > img{
        width:100%;
    }

    Please inject this code into your CSS.
    Custom Size for one image? Image 10
    The yellow image will be seen as you want when preview.
    Custom Size for one image? Image 21

    For reaching specific elements on the form, you can try your browser's inspect tool.
    1551729847ins Screenshot 32
    1551729874ins1 Screenshot 43
    You can use this selector on our CSS field.
    Please feel free to ask anything.

  • SPCS
    Replied on March 4, 2019 at 3:36 PM

    That worked. Thanks. But how do I do that for the other ones in yellow? Also, Will this auto scale if someone is on a phone vs a desktop?

  • Alan_D
    Replied on March 4, 2019 at 4:55 PM

    If you want to stretch all product images along the row, please inject this code into your CSS:

    .form-product-image-with-options {
        width : 100%;
    }

    Custom Size for one image? Image 10

    This code makes all images width's like 100% of the screen. So the image will be responsive according to people's screen. Please look at this:
    Custom Size for one image? Image 21

    If you have any questions, please contact us.