Remove gap between sections - Impact theme

Hello everyone one,

I have on my product page a gap between my add to cart button section and my accordion section. I would like to remove the space to make it looks more compact .

can someone help me to generate a css code to help me with this please

thanks

Hi @Transcolie ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file → Save

@media only screen and (max-width: 767px) {
    .shopify-section.shopify-section--main-product > .section {
        padding-bottom: 0 !important;
    }   
}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Thanks

it helps a lot and it works :slightly_smiling_face:

Hi @Transcolie ,
We’re happy to see that our suggestion helped you solve the issue.

Should you need any further information, please do not hesitate to contact us by tagging directly at Community post. We will check and let you know soon.

Thanks in advance :heart_eyes: