Fullscreen Background Video Using HTML5 And CSS

You know very well play background video is a modern way to show your website in front of your users and clients when user visit and view your website a video is playing in the background of your website without disturbing its content and that makes your website very beautiful, attractive and different. So, in this tutorial we will show you how to add fullscreen background video using HTML5 and CSS.

HTMl code for play background video

<div class="video-container">
	<video autoplay loop muted id="video-bg">
		<source src="http://www.employastar.com/wp-content/themes/employastar/media/Meeting-Room.mp4" type="video/mp4" />

CSS code for play background video

	position: relative;
	right: 0; bottom: 0;
	min-width: 100%;
	min-height: 100%;
	position: relative;
	width: auto;
	min-width: 100%;
	height: auto;
	background: transparent url(video-bg.jpg) no-repeat;
	background-size: cover;
video{display: block;}
	width: 100%;
	overflow: hidden;
	position: fixed;
	top: 0; right: 0;
	z-index: -100;

Article Name: Fullscreen Background Video Using HTML5 And CSS
Publish Date: 08-08-2018
Google Tags: video background css tricks, css video background div, background video html css, responsive video background, bootstrap background video, html5 video background examplesm, youtube video background html5, css background video cover

Leave a Reply

Related Posts: You may like

Extract Total Number of Image And Missing Alt Attribute using php

How to extract Heading tags using PHP from string

How to remove whitespace from string using php

Remove All Special Characters From String PHP

PHPKIDA Offering Free Tools:


Download Instagram Videos & Photos.

Download Now


Real Time Currency Converter

Convert Now


Robots.txt File Creater

Create Now


Compress yout HTML Code

Minify Now


Compress yout CSS Code

Minify Now


Compress yout JavaScript Code

Minify Now

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.