YouTube iframe embed - full screen
Adding allowfullscreen="allowfullscreen"
and altering the type of YouTube embed fixed my issue.
Youtube iframe - 'fullscreen is unavailable'
Depending on which browser you are using you may need alternative settings turned on iframe see: YouTube iframe embed - full screen for in depth answer
full screen option not working in youtube iframe in html
Why are you using this script https://codegena.com/assets/js/youtube-embed.js
This is disallowing it use this code instead
<div id="your_id">
<iframe width="240px" height="130px" src="https://www.youtube.com/embed/h4cYkgPnYQk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
Displaying a YouTube video with iframe full width of page
To make a You Tube Video full width and preserve the height (and keep it responsive) you can use the following setup.
.videoWrapper {
position: relative;
padding-bottom: 56.25%;
/* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="https://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>
Allow you tube video full screen
Try this, when you are using firefox.
<iframe src="your_page_url" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"> </iframe>
Related Topics
Embed Youtube Code Is Not Working in HTML
CSS 100% Height, and Then Scroll Div Not Page
A True Sticky Footer with a Fixed Header
Why Certain Doctype Declarations Cause 100%-Height Tables and Divs to Stop Working
Yet Another Divs Vs Tables Issue: Forms
Do Custom CSS Properties Use One Leading Dash or Two
How to Use Z-Index with Relative Positioning
Is The Copyright Meta Tag Valid in HTML5
How to Load JavaScript Code Using <Link> Tag
Flexbox: Align Between Bottom and Center
How to Squircle an App Icon Image with Just CSS
Ordered List Showing All Zeros in Ie9
Ipad Layout Scales Up When Rotating from Portrait to Landscape
<A Href> Appends Link to End of Current Url