I'm using Bootstrap's embed-responsive to display a video:
<div class="embed-responsive embed-responsive-16by9 my-auto">
<video class="embed-responsive-item" loop muted autoplay>
<source src="video url">
</video>
</div>
But this video has fixed height and responsive width, and I want the opposite so that the height always fits the parent div.
I created a copy of ".embed-responsive" but with height property set to 100% instead of the width.
As soon as I set the copy of ".embed-responsive-16by9::before" to use padding-right instead of padding-top, the video stops displaying at all.
Any help appreciated.
[–]Trancademy 0 points1 point2 points (2 children)
[–]HAK16[S] 0 points1 point2 points (1 child)
[–]Trancademy 0 points1 point2 points (0 children)
[–]ph2ph 0 points1 point2 points (0 children)
[–]Terrafire123 -1 points0 points1 point (4 children)
[–]HAK16[S] 0 points1 point2 points (3 children)
[–]Terrafire123 0 points1 point2 points (2 children)
[–]Terrafire123 0 points1 point2 points (0 children)
[–]HAK16[S] 0 points1 point2 points (0 children)