Jump to content

Align Text and Image?

Recommended Posts

4 hours ago, mportch said:

Hi,

For some reason these have moved out of place.

How do I align the text and image in desktop view across all my products?

 

https://www.mattportch.com/limited-edition-prints/p/the-wall-frame

Screenshot 2024-08-08 at 9.15.02 pm.png

This code make your gallery center in flex box verticle.

image.thumb.png.6c1cba6908d60e7363d72e55397837bc.png

You can try the following custom CSS to overwrite it

.tweak-product-basic-item-content-alignment-center:not(.tweak-product-basic-item-gallery-design-stacked) .ProductItem .ProductItem-summary {
  align-items: flex-start;
}

Here is my test

image.thumb.png.7da490cef126b05155cd4530a14e169a.png

I hope it can help

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment

Thanks. Unfortunately it doesn't anchor the top of text to the image. Meaning it's only level depending on the size of your browser. If you scale the browser it doesn't line up.

I must have added or deleted some code I was unaware of the past few days because it was aligning level for years without moving.

Link to comment
On 8/9/2024 at 7:11 AM, mportch said:

Thanks. Unfortunately it doesn't anchor the top of text to the image. Meaning it's only level depending on the size of your browser. If you scale the browser it doesn't line up.

I must have added or deleted some code I was unaware of the past few days because it was aligning level for years without moving.

I think you can try this code

section.product-details.ProductItem-details {
    padding-top: 0px !important;
}
nav.ProductItem-nav {
    display: none !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!)

Link to comment

Thanks but this doesn't seem to work either. The text section moves independently from the image on the left. Feels like it needs some code to make them anchor together no matter the browser size. Frustrating because I had it then must have deleted some code somewhere recently.

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.