How to remove the white gap between the product collection and the image banner?

Solved

How to remove the white gap between the product collection and the image banner?

crepscity
Pathfinder
141 0 29

Hi there, i need help to remove the white gap between the product collection and the image banner. I have set the product collection and the image banner to 0 padding however, there is a slight gap?

 

*NOTE - Some collections are product grid and some are featured products. 

 

Screenshot 2024-07-19 at 16.38.31.png 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10211 2427 3081

This is an accepted solution.

Thanks for the info, check this one.

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.grid.product-grid.contains-card.grid--4-col-desktop.grid--2-col-tablet-down {
   margin-top: 0px;
}

 

  • And save. 
  • Result:
  • Made4uoRibe_0-1721405654877.png

    i cant find the other same collection like this. If its not working to other let me know. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 6 (6)

Spac-es
Shopify Partner
408 119 155

Add this code in your base.css file:

ul#Slider-template--16107583537391__featured_collection_EG6U6r {
  margin-top: 0px !important;
}

Result:

Spaces_0-1721404441769.png

 

Any donation is welcome! https://www.buymeacoffee.com/spacescoffee Thanks in advance!
crepscity
Pathfinder
141 0 29

This code only worked for one section in this collection: https://crepscity.com/collections/louis-vuitton-jackets-1

but there are other featured collections within that collection and did not trigger them.

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @crepscity 

Which collection is this? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
crepscity
Pathfinder
141 0 29
Made4uo-Ribe
Shopify Partner
10211 2427 3081

This is an accepted solution.

Thanks for the info, check this one.

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.grid.product-grid.contains-card.grid--4-col-desktop.grid--2-col-tablet-down {
   margin-top: 0px;
}

 

  • And save. 
  • Result:
  • Made4uoRibe_0-1721405654877.png

    i cant find the other same collection like this. If its not working to other let me know. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
crepscity
Pathfinder
141 0 29

I inserted it to each featured collection into the css therefore, it worked thank you.