Docs Viewer

Upload, preview, download, and write quick documents without Word.

+ New Document

videobackgrnd

videobackgrnd.txt

/* Navigation */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1em;
}

nav a {
color: #fff;
text-decoration: none;
margin-left: 1em;
}

/* Ebooks and Audios Grid */
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 1em;
}

.grid-item {
background-color: #f5f5f5;
padding: 1em;
text-align: center;
}

.book-cover {
max-width: 100%;
}

/* Modal */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}

.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
width: 80%;
}

/* Media Queries */
@media only screen and (max-width: 600px) {
.grid {
grid-template-columns: repeat(1, 1fr);

<body>
<video src="your-video-file.mp4" autoplay loop muted playsinline width="100%" height="100%"></video>
...
</body>

body {
margin: 0;
padding: 0;
position: relative;
}

video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}