How to force 1:1 aspect ratio on Image-with-text section?

Solved

How to force 1:1 aspect ratio on Image-with-text section?

atmos-art
Explorer
58 0 10

Hi,

 

I am trying to force a 1:1 ratio for the image on this page so that details on the poster are not lost due to cropping.

URL: https://www.atmos.art/pages/news-and-events-show-and-tell-group-exhibition

 

Please advise

 

Screenshot 2025-05-30 at 20.11.58.png

Accepted Solution (1)

dalnoon520
Shopify Partner
2 2 0

This is an accepted solution.

Hi!

Your request may need some custom CSS

 

 

#shopify-section-template--25014462611779__image_with_text_4DqRHm .image-with-text__media-item {
  display: flex;
  justify-content: center;
}

#shopify-section-template--25014462611779__image_with_text_4DqRHm .image-with-text__media-item .image-with-text__media {
  aspect-ratio: 1/1;
}

 

You can add this custom css into custom CSS in Customize theme

dalnoon520_0-1749047628241.png

 

Hope this will work for you!

Vic Nguyen

View solution in original post

Replies 2 (2)

dalnoon520
Shopify Partner
2 2 0

This is an accepted solution.

Hi!

Your request may need some custom CSS

 

 

#shopify-section-template--25014462611779__image_with_text_4DqRHm .image-with-text__media-item {
  display: flex;
  justify-content: center;
}

#shopify-section-template--25014462611779__image_with_text_4DqRHm .image-with-text__media-item .image-with-text__media {
  aspect-ratio: 1/1;
}

 

You can add this custom css into custom CSS in Customize theme

dalnoon520_0-1749047628241.png

 

Hope this will work for you!

Vic Nguyen
atmos-art
Explorer
58 0 10

Hi, thanks for commenting. It won’t let me paste that code in the place you mentioned. It seems to work if I add it to the base.css section.