Jump to content

Change gallery aspect ratio for mobile/ipad?

Recommended Posts

  • Replies 10
  • Views 608
  • Created
  • Last Reply
On 4/22/2021 at 4:40 PM, creativesurfing said:

It’s the page called ‘projects’ - they are set to square but I’d like the option for them to be more landscape format on a phone if it’s possible?

Add to Design > Custom CSS

@media screen and (max-width:767px) {
.tweak-portfolio-grid-overlay-image-aspect-ratio-11-square .portfolio-grid-overlay .grid-image, .tweak-portfolio-grid-overlay-image-aspect-ratio-11-square .portfolio-grid-overlay .grid-item {
    padding-bottom: 75% !important; /* default is 100 */
}
}

 

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
7 hours ago, tuanphan said:

Add to Design > Custom CSS


@media screen and (max-width:767px) {
.tweak-portfolio-grid-overlay-image-aspect-ratio-11-square .portfolio-grid-overlay .grid-image, .tweak-portfolio-grid-overlay-image-aspect-ratio-11-square .portfolio-grid-overlay .grid-item {
    padding-bottom: 75% !important; /* default is 100 */
}
}

 

Amazing thank you, this is working perfectly!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.