I'm working with an HTML5 video that has a height greater than its width. I've set the video to have 100% in height
and 100% in width
so it scales automatically based on my window size.
However, I want the video to be positioned on the right side of its container. Currently, as shown in the image below, the video content is centered.
Is there a way to achieve this layout?
Here's a screenshot of the video element
.container {
width: 100%;
display: flex;
}
.left,
.right {
height: 100vh;
width: 50%;
border: 1px dotted blue;
display: flex;
align-items: center;
}
.video {
width: 100%;
height: 100%;
}
<div class="container">
<div class="left">
</div>
<div class="right">
<video class="video" playsinline loop autoplay muted>
<source src="" type="video/mp4">
</video>
</div>
</div>