A Shopify store owner encountered a layout issue where the first of two embedded YouTube videos was appearing partially hidden behind the section below it. The second video displayed correctly.
Key Details:
The problem occurred after duplicating an existing video section and changing the video source
The second video (original) continued working properly
Each video functioned correctly when displayed alone on the page
Attempted Solutions:
One user suggested custom CSS targeting the video wrapper’s padding-bottom property, but this didn’t resolve the issue
Screenshots were shared showing the video appearing above/behind other sections
Resolution:
The issue was solved by adjusting z-index values: setting the top video to z-index: 5 and the second video to z-index: 0
This CSS layering fix allowed both videos to display properly without overlap
Summarized with AI on October 27.
AI used: claude-sonnet-4-5-20250929.
I have a page that has 2 YouTube videos embedded and the first one is acting up. IT is popping up behind the second section.
The 2nd video is working as it should behave. The second video was always the only one there, and worked. I have duplicated the section, and changed the video and now the behaviour is off.