Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Background video not filling screen properly Reply To: Background video not filling screen properly

#208061
Max
Participant

Got it sorted:

position: fixed;/*From absolute*/
top: 50%;
left: 50%;
min-width: 100%;
z-index: -100;
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;

With hide overflow set on the container.