How can I adjust the collection grid width in the turbo theme?

Hi I’m working on the turbo theme by out off the sandbox. For collection pages the theme has a collection banner image which is full width and then the actual collection grid sits in 1200px wide box, I would like the collection grid to display as max-width: 100%; width: 94%; without effecting the full width banner at the top. Is this possible?

How it currently looks:

How i want it to look:

I can achieve the look i want, by changing the .section full-width to 100% in chrome inspect, but if i change this in css it obviously changes all the sections on the page to this, which affects the banner image.

@PJ_Robertson1

Please share your web shop URL !

Thanks!

1 Like

Hey there the store isn’t live yet

Password:

iaskah

1 Like

oh and to view a collection with products

https://ciovita-us.myshopify.com/collections/mens-apex-cycling-jerseys

@PJ_Robertson1

Please add the following code at the bottom of your assets/styles.css file

#shopify-section-collection-template .section {
  max-width: 100% !important;
    width: 100% !important;
}

Thanks!

1 Like

Thanks, this is kind of it, but is it possible to make the collection section width 96%, without it affecting the banner image? So make it { max-width: 100% !important; width: 100% !important; } but only target the collection grid?

Sorry i mean make it { max-width: 100% !important; width: 96% !important; }

@PJ_Robertson1

Please add this

#shopify-section-collection-template .section {
  max-width: 100% !important;
    width: 96% !important;
}

Hey doing that also makes the banner 96% width, see screenshot… you can see the white margins on the left and right, I would like the banner to stay full screen, but have the collection below 96% width, I’m not sure if that is possible?

1 Like

@PJ_Robertson1

Remove all Previous code & add this new code .

#shopify-section-collection-template .section {
    max-width: 100%!important;
    width: 100%!important;
}

#shopify-section-collection-template .image-element__wrap {
    max-width: 96% !important;
}

Hey that still creates white borders around the banner image, since we are telling the image wrap to be 96%.

I want the .image-element__wrap to be 100% and the section below it (the collection grid) to be 96%. Sorry if I am not being clear.

@PJ_Robertson1

Please share screenshot what do you want !

Thanks!

1 Like

Hey There,

I was just playing around, i tried…

#shopify-section-collection-template .section {
max-width: 100%!important;
width: 100%!important;
}

#shopify-section-collection-template .product-list {
max-width: 96% !important;
}

and this has achieved exactly what i want. Thank you so much for your help.

@PJ_Robertson1

Remove previous css and add this

#shopify-section-collection-template .section {
    max-width: 100%!important;
    width: 100%!important;
}

#shopify-section-collection-template  .content-wrapper {
    width: 96%;
    margin: 0 auto;
}
1 Like

Thank you that is perfect