it worked but I had to put the code in base.css not inside the theme editor, thank you ![]()
Topic summary
A user encountered unwanted white space at the bottom of their hero banner, but only on mobile devices. The banner wasn’t displaying at full width as intended.
Solutions Provided:
-
DaisyVo suggested adding CSS code to the
base.cssfile to adjust section padding:.section { padding-top: 10px !important; } -
Dan-From-Ryviu recommended adding media query code to Custom CSS in Theme settings to set the hero banner height to full viewport:
@media (max-width: 749px) { #shopify-section-template--18322925224182__hero_banner_jh7CrN .hero__inner { height: 100vh; } }
Resolution:
The original poster confirmed the issue was resolved by adding code to base.css rather than through the theme editor. Both solutions involved CSS modifications targeting mobile viewport dimensions.
1 Like