I'm struggling to integrate a YouTube video into my webpage with Bootstrap, but I want it to span the entire width of the page.
Here's the HTML code:
<iframe class="embed-responsive-item youtube" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0"></iframe>
And the CSS code:
.youtube {
width:100%;
}
You can view the JSFiddle demo here.
However, I'm facing two main issues:
The video preview gets cut off by the height when the webpage is resized to be larger (only half of the video preview is visible).
When the video starts playing, it remains in its small format.
Does anyone know how to resolve these issues using Bootstrap?