I have a container and a video as a child element:
.container {
border: 2px solid red;
display: flex;
flex-direction: column;
align-items: center;
height: auto;
width: auto;
}
.child {
height: 260px;
display: inline;
width: auto;
}
<div class="container">
<video src="https://www.w3schools.com/tags/mov_bbb.mp4" class="child"></video>
</div>
I want to resize the video height and the container width and heght should follow like there is a single element not two !!
How can I do this ?
Note that we want the original aspect ratio of the video even by changing the height of it and the container should follow the changes of video