Answers for "html5 video max width"

0

html video size

// width="320" 
// height="240"

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

**********
or Responsive
*******
<style>
  video {
    width: 100%;
    height: auto;
  }
</style>
Posted by: Guest on March-13-2021
0

html5 video fit width

<div class="videoContainer">
   <video id="video" width="100%" height="auto" onclick="playPause();"></video>
</div>
Posted by: Guest on June-04-2021

Browse Popular Code Answers by Language