Answers for "how to set width of video in html"

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

how to set video size html

#vidstrip {
    position:relative;
    padding-top: 0;
    margin-top: 250px;
    overflow: hidden;
}
.vidstrip-text {
    line-height: 2.1em;
    padding: 1em 4em;
    color: white;
}
.vidstrip-section {
    position:absolute;
    top:0;
    left:0;
    padding: 0;
    z-index:-1;
}
.vidstrip-section, #bgvid {
    width:100%;
    height:auto;
}
Posted by: Guest on October-12-2020

Code answers related to "how to set width of video in html"

Browse Popular Code Answers by Language