My website is cethermal.com. Recently, when browsing on mobile devices, I noticed a white bar appears between each section, but this doesn’t happen on desktop. Does anyone know how to fix this? I’d be extremely grateful.
Topic summary
Mobile-only white gaps appear between sections on cethermal.com; desktop is unaffected. The issue is linked to a theme element with the CSS class .table-of-contents.
Suggested fixes focused on mobile CSS overrides (media queries):
- Adjust styling in theme.liquid: remove padding, set dark background, unset box-shadow for .table-of-contents at <=767px.
- In base.css/theme.css: hide or visually remove the element on mobile using opacity: 0 or display: none at <=749–768px.
- Add the rule in Theme settings’ Custom CSS; when that didn’t work, try a more specific selector (html .table-of-contents).
Implementation outcomes:
- After placing display: none for .table-of-contents in base.css/theme.css at <=768px, the wide white bar was reduced to a thin line, then the OP later confirmed the issue was worked out with help.
Notes:
- Screenshots were used to identify the gaps and show before/after results.
- CSS media queries (e.g., @media (max-width: 768px)) apply styles only on mobile-sized viewports.
Status: Resolved. Action item: OP invited to mark the working comment as the solution.
Hey @shine007
Follow these Steps:
- Go to Online Store
- Edit Code
- Find theme.liquid file
- Add the following code in the bottom of the file above </ body> tag
<style>
@media screen and (max-width: 767px) {
.table-of-contents {
padding: 0 !important;
background: #111827 !important;
box-shadow: unset !important;
}
}
</style>
RESULT:
If you require any other help, feel free to reach out to me. If I managed to help you then a Like would be truly appreciated.
Best,
Moeed
@shine007 do you mean these gaps?
Hi @shine007 ,
Go to Online Store > Themes > Actions > Edit Code > base.css Add below code at the bottom of base.css file
@media screen and (max-width: 749px) {
.table-of-contents {
opacity: 0 !important;
}
}
Hello, @shine007
1. Go to Online Store → Theme → Edit code.
2. Open your theme.css / base.css file and paste the code in the bottom of the file.
@media (max-width 768px){
.table-of-contents {
display: none !important;
}
}
Thank You!
Please add this code to the Custom CSS section in the theme settings.
@media (max-width: 749px) {
.table-of-contents { display: none !important; }
}
Yes .And I m not sure what it is .
Thanks. I tried, but the problem persists.
Please try to update the code to this
@media (max-width: 749px) {
html .table-of-contents { display: none !important; }
}
I tried ,but no use .Thanks
Hello, @shine007
I’ve applied this code:
@media (max-width 768px){
.table-of-contents {
display: none !important;
}
}
Maybe you’re pasting your code in the wrong place, paste this code into base.css or theme.css.
I’ve attached screenshot of before and after:
You’re amazing. That wide white bar has now turned into a thin white line. How can I make it disappear?
Glad to hear it worked for you, to make it completely disappear I think it would be better if I’m able to make code changes myself in your theme files to do it properly so feel free to share your collaborator request code in my private messages and I’ll get that sorted out for you.
Cheers,
Moeed
@shine007 I think your issue has been solved, do let me know if you need any further updates.
That’s amazing—one move to take them down!
Thanks friend .Someone has helped me to worked it out .If need other help ,I will contact you .






