How can I make the video section smaller in label theme?
pic for reference: https://ibb.co/200DWmmf
https://roxysound.com/collections/frontpage
password sahsku
Thank you
A user seeks to reduce the height of the video section in Shopify’s Label theme. An initial CSS solution is provided using media queries to adjust the padding-bottom to 32% for screens wider than 767px, making the video section smaller.
The user then requests a follow-up adjustment: keeping the new reduced size but repositioning the video to show more of the top portion (specifically, more of a person’s head) rather than the bottom.
A second CSS snippet is offered to address this:
object-position: top!important; on the .object-cover class to shift the video’s focal point upwardBoth code snippets are added via the theme’s Custom CSS section in the Shopify admin panel. The discussion appears resolved with these two CSS modifications working together.
How can I make the video section smaller in label theme?
pic for reference: https://ibb.co/200DWmmf
https://roxysound.com/collections/frontpage
password sahsku
Thank you
Hi there! ![]()
Here’s the CSS code to resolve your issue:
@media screen and (min-width: 767px) {
.background-video-wrapper--cinematic {
padding-bottom: 32%!important;
}}
To add this to your Shopify theme, follow these steps:
That’s amazing, thanks, is there a way I can see more of the top instead of so much of the bottom (see more her head) but keeping this new size?
Add this one too:
.object-cover {
object-position: top!important;
}