Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I propose like this:
<section id="sect_sel">
<video id="video" autoplay="autoplay" loop="loop" preload="auto" muted>
<source src="_images/rest.mp4"></source>
</video>
</section>
section {
display: block;
width: 100%;
height: 200px;
overflow: hidden;
}
video {
display: block;
width: 100%;
}
If the height is specified, then no way, since the video is embedded with the preservation of its proportions, if one of the sides is fixed.
For example, open a video on a PC, make a small height (200 pixels) and stretch it by 100% with the mouse.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question