I've been trying to figure out how to make a video responsive in HTML with CSS, but no matter what I do, it just doesn't seem to work. Can someone please provide some guidance?
Here is the HTML code that I am using:
<div class="container">
<video width="540px" height="320px" controls src="Videos/Video.mp4"></video>
</div>
And here is my CSS code:
.container {
width: 100%;
}
video {
height: auto !important;
width: 100% !important;
}