I have a custom bbcode for video and i am trying to make it responsive.
This is the code I created by googling but it is not working. Anyone can help?
Code: Select all
<div class="responsive-object" {
position: relative;
padding-bottom: 67.5%;
height: 0;
margin: 10px 0;
overflow: hidden;
}>
<div class="responsive-object video" {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}>
<video controls/>
<source src="{URL}" type="video/mp4">
</video>
</div>