hey id like to make the image sizes of two images responsive to the different devices and screen sizes. The images have been added to a custom liquid section on the product page and the code of the two is the following:
Does anybody know how to make it responsive to mobile and tablet?
Thanks
To adjust the images according to the width of the device, you’ll need to adjust the CSS code. The HTML code you’ve provided seems correct; it should work fine. If you’d like, you can share the link to your store so I can assist you better.
Hello,
I am San from MS Web Designer.
Here is the solution:
Add max-width:100% on Image Tag
Hope this helps.
If you have any concerns, do let me know.
Regards,
San
1 Like
ahh I already had max-width=“100%” in there once but didnt work obviously
thanks San!
just found out, in desktop it then stretches beyond the other containers. And i want it to be inside:
should be like this:
Hello,
Thank you for your reply.
Is it solved?
Do let me know in case of any queries.
Regards,
San
hey no unfortunately not, its still wider than all the other content on the page
Hello,
Thank you for your response.
Please share the store URL so that we can check and assist you.
Regards,
San
You can try to add this code:
max-width: 100% !important; overflow-x: hidden !important;