Jump to content

scale image in tablet landscape mode only

Recommended Posts

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.

 

19825.thumb.jpg.6784bc1133abae2ce0e2240acfc88d15.jpg

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.