Custom Liquid-Gif Mobile Layout

Custom Liquid-Gif Mobile Layout

ayahuasca
Visitor
1 0 1

I'm currently using the Dawn theme for reference and I've added a custom liquid GIF on my home page, here is the custom CSS code for it:
<div align="center">
<img src="https://cdn.shopify.com/s/files/1/0699/5322/4941/files/51.gif?v=1732978864"

width="1225" height="675"
</div>

 

It works correctly on the desktop layout but whenever I switch towards the mobile layout, or preview the website on my mobile phone; the GIF doesn't automatically adjust in size. I've attached a small picture here to show what I'm dealing with.

 

mobile layout error.PNG

 

If needed, I can share my website link to give more insight as to what I'm having issues with.

Replies 2 (2)

B2Bridge
Explorer
335 67 82

Hi @ayahuasca, can you share us your store url?

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

B2Bridge
Explorer
335 67 82

Hi @ayahuasca, you can add custom css to your custom liquid, like this:

@media screen and (max-width: 570px) {
  div {
    width: 100%;
  }

  div > img {
    width: 100%;
    object-fit: cover;
  }
}

B2Bridge_0-1739240718719.png

 

 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.