How can I make an image smaller on the desktop version only?

Solved

How can I make an image smaller on the desktop version only?

Theo_Bee
Excursionist
25 0 6

Hi! I would like to reduce the size of an image on my homepage, but only reduce it for the desktop version of my website. Is this possible and if yes, how would I do that? 

 

I have attached screenshots of how it looks on mobile and desktop. As you can see, on desktop it is very wide and cropped.

Please let me know if there are any details or information that I can provide that would be of help. 

Kind regards

Theo

Here is a screenshot of the image on desktop: 
Screenshot 2024-08-31 at 13.26.53.png

 

Here is a screenshot of the image on mobile: 

IMG_2708.PNG

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1480 422 482

This is an accepted solution.

@Theo_Bee 

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code above </body>

 

<style>
@media only screen and (min-width: 960px) {
  #Banner-template--23346802622794__image_banner_346q47 {
    transform: scale(0.8);
  }
}
</style>

 

Change the scale number if you want

If it helps you, please like and mark it as the solution.

Best Regards 😍

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 2 (2)

BSSCommerce-B2B
Shopify Partner
1480 422 482

This is an accepted solution.

@Theo_Bee 

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code above </body>

 

<style>
@media only screen and (min-width: 960px) {
  #Banner-template--23346802622794__image_banner_346q47 {
    transform: scale(0.8);
  }
}
</style>

 

Change the scale number if you want

If it helps you, please like and mark it as the solution.

Best Regards 😍

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

Theo_Bee
Excursionist
25 0 6

This worked perfectly 🙂 Thank you so much for your help!