Jump to content

Change size of homepage images for mobile

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Howdy- The images (slideshow) on my homepage look fine on desktop, but bad on mobile (iPhone- comes up as very long, narrow image). Is there code to basically make the image size "small" on mobile, while leaving it "large" on desktop? Thanks!

  • Replies 6
  • Views 574
  • Created
  • Last Reply

Top Posters In This Topic

Posted

@tuanphan Thanks so much! That did work, so images now look correct on iPhone when holding it vertically. I'm wondering if there's a way to avoid the homepage images turning into very short heights when turning iPhone on its side (while also making sure they continue to look normal on iPad). Thanks again-

  • Solution
Posted
On 3/21/2023 at 7:51 PM, epetrack said:

@tuanphan Thanks so much! That did work, so images now look correct on iPhone when holding it vertically. I'm wondering if there's a way to avoid the homepage images turning into very short heights when turning iPhone on its side (while also making sure they continue to look normal on iPad). Thanks again-

With landscape mode, use this code

/* Mobile Resize Slideshow */
@media screen and (max-width:991px) and (orientation:landscape) {
.gallery-fullscreen-slideshow {
    height: 50vh !important;
}
}

You can adjust number 50

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!)

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.