different image for mobile and Desktop

i want to use two different photo for mobile and Desktop , i used image banner , but i face this problem in mobile screen, that the image for mobile not showing full

could you please help me to solve it

URL: saintalen.com

Hi @ai41 ,

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media screen and (max-width: 749px) {
    .banner--stacked.banner--adapt:not(.banner--mobile-bottom) .banner__content {
        position: static; !important
    }
   .banner--mobile-bottom .banner__media, .banner--stacked:not(.banner--mobile-bottom) .banner__media {
        position: static !important;
    }
}

If my reply is helpful, kindly click like and mark it as an accepted solution.

If you are happy with my help, you can help me buy a COFFEE

Thanks!

Hi @ai41

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
div#Banner-template--18388846379263__image_banner_eDbLHP .media > img {
    object-fit: fill;
}
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hi @ai41 ,

The issue you were facing on the mobile screen has been resolved. I provided the code, and now the image appears full on the mobile screen.

it did not work

Hi @ai41

YEAH ITS WORKING , BUT NOT USING YOUR CODE , I FINDOUT WAY , THANK YOU