Please add this code to Custom CSS of that section to make the video full width
.video-homepage { width: 100%; padding: 4rem; }
@media (max-width: 767px){ padding: 2rem; }
A user needed help centering a non-YouTube video on their homepage. The video was in portrait mode and sized to 50% width, but remained left-aligned.
Initial attempts:
margin: 0 auto to the CSS, but this made the video too large and didn’t center itResolution:
</head> tag in the theme.liquid fileTechnical note: The user encountered an “Invalid custom CSS: Certain At-rules are not supported” error when trying to add CSS through the section’s Custom CSS field, which is why the code needed to be added directly to the theme file instead.
Please add this code to Custom CSS of that section to make the video full width
.video-homepage { width: 100%; padding: 4rem; }
@media (max-width: 767px){ padding: 2rem; }