Jump to content

Would like for images in the "additional info" section on mobile to be two columns

Go to solution Solved by tuanphan,

Recommended Posts

Posted (edited)

This worked well to get it to two columns, but it does look like something strange is happening though as you can see in the IMG_53C061E33961-1.jpeg below. This view is on an iPhone 13 Pro using Google Chrome web browser:

Also, I'm trying to get the "figcaption" to align to the center of the image on mobile. Could you please help me with this? Also, if I add more images to other product page's "additional info" sections, would I just need to swap out the "div#block-ae8679ccf26e48efa451+" with the one on the new page?

Screenshot 2024-12-03 at 09.29.06.png

IMG_53C061E33961-1.jpeg

Edited by Coryoos
  • Solution
Posted

you can remove code I sent & use this new code

@media screen and (max-width:767px) {
	section.ProductItem-additional figure {
    display: flex;
    align-items: center;
}
section.ProductItem-additional figure figcaption {
    margin-top: 0px !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!)

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.