I've been stuck trying to make a video on my computer be the video in the background. My video is titled "runbg.avi" and it is in the same folder as my HTML and CSS files.
These are a couple of many websites that I visited to search for an answer.
Using file:// instead of http:// when trying to get video from my computer rather than the web.
I can point to video on the web but not locally.
My program so far.
/* BACKGROUND */
video#vid {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
background-size: cover;
margin: 0 auto;
}
<!DOCTYPE html>
<head>
<title>Seb's Fitness</title>
<link rel = "stylesheet"
type = "text/css"
href = "css.css" />
<video autoplay loop poster="" id="vid">
<source src="file://runbg.avi" type="video/avi">
</video>