MN88-MI Posted January 25, 2022 Share Posted January 25, 2022 Site URL: https://duelle.studio/about Hello everyone, how do I scale the image I am using to a 90% size only when in tablet mode landscape keeping it always full bleed? See image below to see the weird crop on tablet landscape mode. I had this but it doesn't do the right thing, only cropping the image rather than scaling: @media screen and (max-width: 1200px) { #collection-61dc4529fdc5342366fa9b80 img { width: 80% !important; } } I have tried this too, but it doesn't work either. it just creates an empty band at low level. //smaller image in tablet mode @media screen and (max-width: 1200px){ #collection-61dc4529fdc5342366fa9b80 img { width: 100% !important; height: auto !important; } } page : https://duelle.studio/about Thank you in advance to all for the help. Link to comment
tuanphan Posted January 26, 2022 Share Posted January 26, 2022 Try adding this to Design > Custom CSS @media screen and (max-width:1024px) and (min-width:768px) and (orientation:landscape) { .gallery-fullscreen-slideshow-item img { object-fit: contain !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
MN88-MI Posted January 27, 2022 Author Share Posted January 27, 2022 Thank you. This code worked. I also had to change the size of the image itself to have it still showing at fullbleed. But it seems all fine now. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment