How to put a video-phone in the middle of the page at the reset.
Such a problem: the site should be characterized by a video with a height of 870rx, a picture of the site that is a static continuation of the video and coincides with the picsel at the picsel. The problem is how to make the background not diminished when the screen narrows down, but how to be centralized, i.e., there is an object in the center of the view that should remain in the center but not in the centre. I've been through min-width, but when it reaches the content of the site, it stops narrowing down and there comes a scrub that doesn't need. I feel that this task is on the surface somewhere, but this project has been redesigning for a long time, and I'm already confused. Thank you so much. Here's the mark:
<div class="background"> <div class="video1" id="vid"> <video autoplay poster="/assets/imgs/bg2.jpg" id="bgvid" loop> <source src="assets/video/earth3.mp4" type="video/mp4"> </video> </div> <div class="bottom"> <div ui-view="header" id="header"></div>
<div class="row" ui-view="middle"> <div class="large-2 columns show-for-large aside"> <div ui-view="aside"></div> </div> <div class="large-10 columns container"> <div ui-view="content" class="row"></div> </div> </div> <div ui-view="footer"></div>
Here's the style:
background-size: 100%; height: 100%; width: 100%;
margin: 0 auto;
width: 100%; height: 100%;
Now, everything's in proportion and the border between the video and the picture is not visible, but I don't need the video to decrease.
carriann last edited by
background-position: center center;