Thank you so much Armin!
Fatigue
Posts
-
embedding background videos with consistent margins in a website layout -
embedding background videos with consistent margins in a website layoutHello everyone,
I'm currently working on embedding a background video into a website layout, but I'm having some trouble getting the video to respect the same margins set within my grid layout. Ideally, I want the video to align seamlessly with the left and right margins, just like the other elements on the site, so everything appears cohesive and well-aligned with the surrounding projects.
Here's the setup: the video should play in the background, and I plan to overlay some text on top. So, a simple img tag replacement won’t work in this case. The challenge is finding a solution where the video covers the entire section but keeps those same left and right margins from the grid.
Does anyone have experience with this kind of layout setup? Any tips on CSS tricks or frameworks that might help ensure the video maintains the right spacing would be appreciated!
Thanks in advance for any suggestions!