In the process of developing a new website, I am looking to incorporate a large splash background as a "hero" image. Similar to the website found at , I am hoping to use a video as the background image showing a woman unloading a car.
One key requirement is that the image always fits within its parent container when resizing the browser screen. I have attempted to achieve this using the code provided in JSBin here: http://jsbin.com/ruqisa/1/edit, but have not made much progress.
Thus far, I have been unsuccessful in replicating this behavior using CSS alone. Ideally, I would like the video to extend beyond the boundaries of its parent container based on the screen dimensions, either in width or height.
Has anyone successfully accomplished this using only CSS? While I could manually calculate this using JavaScript upon resize, I am hoping to achieve the desired effect with CSS exclusively.
EDIT: To clarify, I am looking to make only the header background a video, not the entire page.