Hello,
How do you delete the spacing that’s above and under the video as you can see in the image.
my website is:
A Shopify store owner is experiencing unwanted spacing above and below a video banner on mobile devices. Multiple solutions were provided involving CSS code modifications:
Main Solutions Offered:
.videoBackground .videoBox with min-height: max-content, margin-top: 8px, and z-index: 0 propertiestheme.liquid file (above </head> tag) or in base.css/main.css files@media (max-width: 769px) to target mobile devices specificallyAdditional Request:
The user also asked about making the header transparent on mobile (already transparent on desktop with Sense theme).
Resolution:
The issue was successfully resolved after implementing one of the suggested CSS solutions. The user confirmed it works and expressed gratitude.
Hello,
How do you delete the spacing that’s above and under the video as you can see in the image.
my website is:
Hi @Muselabel , Follow these Steps:
Find theme.liquid file
Add the following code above close tag:
@media screen and (max-width: 769px) {
.videoBackground .videoBox {
min-height: max-content !important;
margin-top: 55px !important;
}
}
=> Result:
it doesn’t work for me
Can you also help me make the header transparent on a mobile device? On the desktop, the header is already transparent. I have the sense theme
Hi @Muselabel
Do you mean like this?
If it is check this one.
@media screen and (max-width: 769px) {
.videoBackground .fullscreen-video-wrap {
z-index: 0;
margin-top: 8px;
}
.fullscreen-video-wrap {
flex-grow: 1;
}
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
You can try add the following code above close tag in file theme.liquid
{% style %}
@media screen and (max-width: 769px) {
.videoBackground .videoBox {
min-height: max-content !important;
margin-top: 8px !important;
z-index: 0 !important;
}
}
{% endstyle %}
if It still not work, you can add the code below at the bottom of the file base.css:
@media screen and (max-width: 769px) {
.videoBackground .videoBox {
min-height: max-content !important;
margin-top: 8px !important;
z-index: 0 !important;
}
}
Result:
Hi @Muselabel
You can solve it by adding this code to Online Store > Themes > Customize > Themes settings > Custom CSS
@media (max-width: 749px) {
.videoBackground .videoBox {
min-height: 300px !important;
margin-top: 60px !important;
}
}
thank you so much it works:)