Jump to content

How to fix aspect ratio for fall back image in mobile

Go to solution Solved by tuanphan,

Recommended Posts

Greetings squarespace community. I have a small problem with my fall back image. In mobile version the image is getting crop a lot. Is there any way to display it in it's original aspect ratio only for mobile?

My website is   https://www.star-surfing.com

Thanks.

Edited by manos
Link to comment
  • Replies 7
  • Views 652
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
On 1/28/2023 at 8:03 PM, manos said:

Yes!

Hi,

Try adding to Design > Custom CSS

@media screen and (max-width:767px) { 
[data-section-id="63bd47759238f76897ea845a"] {
    min-height: unset !important;
    height: 49vh;
}
}

 

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
  • 4 weeks later...
On 3/1/2023 at 9:14 AM, TG22 said:

Hi there. Greetings! Following because I have the same issue, although it's not working for me. I entered as noted under Design > CSS but it's not adjusting it. What am I missing? 

My website is https://www.ommovementstudio.com

Any help would be much appreciated!

Screen Shot 2023-02-28 at 9.12.43 PM.png

Screen Shot 2023-02-28 at 9.12.32 PM.png

Use this code for your case

/* resize mobile top slideshow */
@media screen and (max-width:991px) {
.gallery-fullscreen-slideshow {
    height: 35vh !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

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.