Jump to content

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

Recommended Posts

  • Replies 6
  • Views 1.5k
  • Created
  • Last Reply

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, 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

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, 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...

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 for knives. The code shared with the aid of birdmade is not working for me.

Link to comment
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.