Jump to content

Resizing Images in a Gallery Section - Mobile Only

Recommended Posts

  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try this Custom CSS:

section[data-section-id="651dd91809e3e049b6b4d827"] {
  .gallery-reel {
    height:20vw !important;
  }
}
Edited by Ziggy

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Did your chance the value?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
On 10/7/2023 at 3:49 AM, Ziggy said:

Did your chance the value?

yes! for example if I use section[data-section-id="651dd91809e3e049b6b4d827"] {
  .gallery-reel {
    height:70vw !important;
  } } it looks like ( see photo) basically I want the logos to not be so wide, if the height cannot change that is fine!

Screen Shot 2023-10-09 at 5.12.28 PM.png

Link to comment

Try this new code

@media screen and (max-width:767px) {
section[data-section-id="651dd91809e3e049b6b4d827"] .gallery-reel {
    height: 25vh !important;
}
section[data-section-id="651dd91809e3e049b6b4d827"] img {
    object-fit: contain !important;
    height: auto !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.