Hello we have this white border on mobile view, does anyone know where it comes from and how to remove it?
Thanks in advance.
A user encountered an unwanted white border appearing on their mobile site using the Empire 2.0 theme.
Root Cause Identified:
GemPages support team diagnosed the issue as an oversized button element causing horizontal overflow, which creates the visible white space on mobile devices.
Proposed Solutions:
Multiple support teams offered CSS-based fixes:
</head> tag to address the button sizingassets/theme.css targeting the newsletter input field with flex-basis: calc(50% - 20px)</body> tag in theme.liquidhtml,body{overflow-x:hidden!important} to the bottom of theme.css to hide horizontal overflowStatus: The discussion remains open with no confirmation from the original poster about which solution resolved the issue. All responses include screenshots demonstrating the problem or implementation steps.
Hello we have this white border on mobile view, does anyone know where it comes from and how to remove it?
Thanks in advance.
Hello @emilbrandon ,
It’s GemPages support team and glad to support you today.
I checked your website and found that the cause of this issue is that the button is too big:
I would like to give you the recommendation to support you so kindly follow the steps below:
Open your theme.liquid theme file
Paste the below code before
If you require any further information, feel free to contact me.
Best regards,
GemPages Support Team
Please add below css code in bottom of assets/theme.css file
.site-footer-block-newsletter .newsletter .newsletter-input {
flex-basis: calc(50% - 20px);
}
Thank you.
Hi [email removed]Emilbrandon,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.css,
Step 3: Paste the below code at bottom of the file → Save
html,body{overflow-x:hidden !important}
Hope my solution works perfectly for you!
Best regards,
Victor | PageFly