Okay
  Public Ticket #2718182
images responsive
Closed

Comments

  •  5
    BradElin started the conversation

    how do I make these images responsive so they are smaller on mobile screens? 

  •  5
    BradElin replied

    I have this code which makes the image fit for desktop but not for mobile - if I remove this then it fits correctly for mobile and not for desktop 


    .row .nectar_image_with_hotspots img {
        width: auto;
    margin-bottom: -200px;
    height: 700px;
    }




  •  2,723
    Andrew replied

    HI There,

    How about you try using the regenerate thumbnail plugin so that you have different image sizes to fit on different screens.

    Thanks.

  •  5
    BradElin replied

    surely there must be a way to have the image fit in the middle of the screen without having to use a different plugin? 

  •  5
    BradElin replied

    I have even resized the image to have a height of 700px like in the css and it fits full screen height

  •  2,723
    Andrew replied

    Hi There,

    Try using the Column Background Image Option instead as it has more flexibility: http://themenectar.com/docs/salient/page-builder-columns/ .

    Thanks.

  •  5
    BradElin replied

    hi, 

    this image im referring to is the image with hotspot 

  •  2,723
    Andrew replied

    Hi There,

    The images having hotspots seems to be responsive. Please let us know from what screen size are you experiencing this or which mobile device are you using.

    Thanks.

  •  5
    BradElin replied

    please visit rebelenergy.io and see on your desktop you will see the product images with hotspots are not fitting correctly, 

    also see screenshot,

    im using a 13inch macbook pro (screenshot 1)  and have a bigger screen (see 2nd image) for mobile it works correctly its desktop mode that the image is too big 

  •  2,723
    Andrew replied

    Hi There,

    Please try this css:

    .row .nectar_image_with_hotspots img {
        width: 88%;
        margin-bottom: -168px;
    }

    Thanks.

  •  5
    BradElin replied

    thanks that seemed to work