How to add an image as a background using media queries to the section id= "vid" and hide the background video running on it. My code HTML code is shown below
<section id="vid" class="vidd">
<video playsinline autoplay muted loop poster="css\img_forest1.jpg" id="bgvd">
<source src="video\Love-Coding.webm" type="video/webm">
</video>
</section>
and CSS code is shown below
@media screen and (max-width: 480px)
{
video { display: none; }
}
@media screen and (max-width: 480px)
{
#vid {
background: url(img_forest.jpg) no-repeat center center scroll;
}
}