Fix padding First images: to much white space

Solved

Fix padding First images: to much white space

Luxurymrkt
Globetrotter
761 2 161

Hi,

I need to fix the padding up top maybe 50px up on desktop to much white space> also if possible make the images closer together. My site is https://vazluxe.com'

less opadding.png

Thank You | mike
Accepted Solution (1)

CafeDelMar
Shopify Partner
163 36 45

This is an accepted solution.

Hey @Luxurymrkt.

 

Let's try the following:

  • Navigate to Online Store > Three dots > Edit code
  • Find the theme.liquid file
  • Paste the code below right before the closing </body> tag
  • Save and hard-refresh the storefront
<style>
	main section:first-child .gallery-carousel__meta.carousel__navigation-wrapper {
    height: 30px !important;
}

main section:first-child .gallery-carousel__items > div {
	margin-right: 10px !important;
}
</style>

 

Feel free to adjust the values, of course. The CSS above only targets the first gallery block.

 

If applied correctly, the result should be:

Screenshot_3.png

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 3 (3)

CafeDelMar
Shopify Partner
163 36 45

This is an accepted solution.

Hey @Luxurymrkt.

 

Let's try the following:

  • Navigate to Online Store > Three dots > Edit code
  • Find the theme.liquid file
  • Paste the code below right before the closing </body> tag
  • Save and hard-refresh the storefront
<style>
	main section:first-child .gallery-carousel__meta.carousel__navigation-wrapper {
    height: 30px !important;
}

main section:first-child .gallery-carousel__items > div {
	margin-right: 10px !important;
}
</style>

 

Feel free to adjust the values, of course. The CSS above only targets the first gallery block.

 

If applied correctly, the result should be:

Screenshot_3.png

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution
Luxurymrkt
Globetrotter
761 2 161

It worked but theres still this extra space on the right side. Possibly to fix?

extra space.png

Thank You | mike
CafeDelMar
Shopify Partner
163 36 45

You can add the following block (the same way) or just paste the rule into that previous block.

 

<style>
	main section:first-child .gallery-carousel__items.carousel__wrapper.swiper-wrapper {
	    justify-content: center;
	}
</style>

 

This would center the whole block. This is the best I can do, as spreading out the images would increase the gap between them.

 

 

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution