Currently, I am working on a layout at the top of a page that includes a div with images and a video background. However, I'm encountering difficulties in getting it to work properly. Initially, everything seemed fine in my first version until issues arose when attempting to make it compatible with different browser window widths. The setup is as follows:
https://i.sstatic.net/iuD3A.jpg
Blue - DIV with video background, green - images, green with orange border - image intended to stick to the bottom of the video, half of its height extending beyond the video area, and gray - regular page content.
The two problems I've encountered are the inability to find a way for the image (with an orange border) to consistently stay at the bottom of the video while partially extending beyond the video's bounds. It needs to maintain this position regardless of screen width changes. Also, the background of the video-containing DIV does not stretch to match the browser width like the video itself. I want it to be constantly covered by the video, adjusting size accordingly.
If anyone has suggestions on how to rectify these issues to achieve the desired outcome, please share!
Here is the relevant code snippet (page width on js fiddle may need adjustment for issue observation):
https://jsfiddle.net/yLmryL48/3/
See below for the detailed CSS code utilized:
body {margin: 0px;}
#video_box {
width:100%;
position:relative; height:720px;
background: url("http://i.imgur.com/X3mb6AD.jpg"); -webkit-background-size: cover;
-moz-background-size: cover; -o-background-size: cover; background-size: cover;}
#video_overlays {position:absolute; text-align:center; width:100%;}
#vt_logo, #vt_url { display:block;}
... // Additional CSS code continues here