Jump to content

Change container size for all product pages?

Recommended Posts

  • Replies 8
  • Views 1.6k
  • Created
  • Last Reply

@tuanphan

Thanks. I can't seem to get it to work, but again, I'm learning about CSS as i go. I've tried:

.collection-type-product.view-item.content-outer {
   position: relative;
  width: 90% !important;
  margin: auto;
  }

 

For the moment I've got the intended look by individually effecting the 3 elements within the container. It would be nice to know how to do this properly in case in future I have more than just a handful of elements.

 

https://shop.jonathan-gallagher.com/photo/001-premium

pw: jonjonjon

Link to comment
1 minute ago, JonJonJon said:

Thank you. I had already tried with or without a space, as I'm not sure which it is. But sadly it didn't work, I guess the subject I'm pointing trying to point to goes under a different name :S

What do you want to achieve?

Page content width?

If yes, use

.collection-type-products.view-item .Main-content {
    max-width: 50%;
}

 

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

That works, but you're right, I guess maybe I'm looking at this the wrong way. In a nutshell, I am trying to restrict the size of my product image on desktops. Seeing the product large is important, as it's a print.  So essentially a max-height

 

This way the container size restriction doesn't mess with the aesthetics of alignment with elements outside of the container.

 

I've managed to implement this. However there is a problem.

- The product page is divided by a ratio, 60% to 40%, towards the image. This doesn't change unless specified by breakpoints. Meaning that the width of the container as a whole stops when the image area reaches the designated max-height. 

Is there a way to make this ratio dynamic? or override/disable it at a certain point? Whatever allows the container to still grow even after the image has reached a max height.

 

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.