Jump to content

How do I make a group of images the same height on mobile on a specific page?

Go to solution Solved by Beyondspace,

Recommended Posts

You want image to be equal height on this view right? since image ratio is different, make them same height may reduce width of some,

image.png.c803f6825a1d365c39e2736b7c920f1e.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
13 hours ago, bangank36 said:

You want image to be equal height on this view right? since image ratio is different, make them same height may reduce width of some,

image.png.c803f6825a1d365c39e2736b7c920f1e.png

I would like the width to stay the same, so pretty much have all the kitchen tool images to be the same size/ratio on mobile.

 

Link to comment
  • Solution

I tried to make their ratio as 75%, you can feel free to try, Copy to Design->Custom Css

Your site is great, which template you used?

@media only screen and (max-width: 600px) {
  #item-5f9b1c8421bce951fa5c24e4 .sqs-block-image-figure .v6-visually-hidden + div {
    padding-bottom: 75% !important;
  }
  
  #item-5f9b1c8421bce951fa5c24e4 .sqs-block-image-figure .thumb-image {
    top: 50% !important;
    height: auto !important;
    transform: translateY(-50%)
  }
}

image.thumb.png.6aa97d44e5cdd901e7eb6ecff9c1e26c.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
13 hours ago, bangank36 said:

I tried to make their ratio as 75%, you can feel free to try, Copy to Design->Custom Css

Your site is great, which template you used?


@media only screen and (max-width: 600px) {
  #item-5f9b1c8421bce951fa5c24e4 .sqs-block-image-figure .v6-visually-hidden + div {
    padding-bottom: 75% !important;
  }
  
  #item-5f9b1c8421bce951fa5c24e4 .sqs-block-image-figure .thumb-image {
    top: 50% !important;
    height: auto !important;
    transform: translateY(-50%)
  }
}

image.thumb.png.6aa97d44e5cdd901e7eb6ecff9c1e26c.png

Thank you! This works great! 

And thanks for the kind words as well. The template we're using is Foster. 

Link to comment
  • 10 months later...
On 9/6/2021 at 1:02 AM, njmkse333 said:

Ould a person be able to proportion a code for stacking the mobile classes menu? I see you acquire it to paintings to your website Simon. The code shared with the aid of birdmade is not working for me.

Can you share link to your site? We can check easier

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.