Problem with overlapping

Topic summary

Issue: Elements on the product page overlap when the description is short, especially below the “tillbehör” (accessories) section in a draft Shopify theme.

Context: Long descriptions prevent the overlap; switching to Tabs can shorten content and trigger the problem. A preview link and multiple screenshots were provided; visuals are central to understanding.

Attempts:

  • Suggested CSS change in theme.css to adjust container padding inside a media query (@media min-width: 641px). Replace “padding: 0 var(–desktop-container-gutter);” with “padding: 1 var(–desktop-container-gutter);” and a result image was shared.
  • Added CSS in theme.liquid to apply “.section { margin: 31% 0 !important; }” for screens ≥641px. This “kinda” worked but created excessive spacing globally; the goal is to stop overlapping without large gaps.
  • Proposed increasing “.section__header { margin-bottom: 70px !important; }” under the same media query, but the user couldn’t find that code line in their theme.

Status: No resolution yet. The user provided a product link with longer description and is seeking a targeted fix that adds spacing only beneath the relevant section without affecting other elements.

Summarized with AI on December 20. AI used: gpt-5.

Does anyone know how to fix this, these elements are overlapping,

Not a problem when i have longer description on the page but that is not always the case, should be some padding under the “tillbehör” section

https://did4zqnh7ipsok0q-24276923.shopifypreview.com

If anyone has a fix for this i will be more then happy!

Hey @emilbrandon

Can you send a product link that has a longer description? I’m unable to locate a product like that on your store.

Best Regards,

Moeed

Hello @emilbrandon

Go to online store ----> themes ----> actions ----> edit code---->theme.css —> line number 997
search this code

@media screen and (min-width: 641px) {
.container {
padding: 0 var(--desktop-container-gutter);
}
}

and replace with this code.

@media screen and (min-width: 641px) {
.container {
padding: 1 var(--desktop-container-gutter);
}
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

Hello Moeed, thanks for your answer,

Yes here is a link with longer, note this is in a draf theme, and we experiance this when we change the Tabs, and the descriptoin become shorter regarding on the content,

https://did4zqnh7ipsok0q-24276923.shopifypreview.com

Hello @emilbrandon

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (min-width: 641px) { .section { margin: 31% 0 !important; } }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

This did kinda work, but added alot of padding or margin to all the element belove the problem is just the overlapping not the distance

Hello I do not get this to work proper:

https://did4zqnh7ipsok0q-24276923.shopifypreview.com

Go to online store ----> themes ----> actions ----> edit code---->theme.css —> line number 997
search this code

@media screen and (min-width: 641px) {
.section__header {
margin-bottom: 15px;
}
}

and replace with this code.

@media screen and (min-width: 641px) {
.section__header {
margin-bottom: 70px !important;
}
}

result

Thanks

Hello again and thanks for the answer, i do not fine this line in the code

did you have a solution for this?