How To Make This You Tube Video Responsive? August 29, 2022 Post a Comment I have an you tube video in a wrapper. Copy The result can be seen in the Pen Responsive Iframe - Base Code. The markup and CSS and the rationale behind them are taken from How to Make Responsive Iframes — it’s easy! and from Scaling iframes for responsive design CSS-only. One salient point is to remove all styling from the <iframe> tag. Style with CSS only, with the exception of overflow-scrolling and overflow which are styled inline in the <div> wrapper around the <iframe>. Another point is to set width and height be setting max-width and max-height in the <div> wrapper around .responsive-wrapper. The outer most <div> is not necessary; it's just there to show the effects of padding and border. To position the iframe left you might use flex box instead of float. Share Post a Comment for "How To Make This You Tube Video Responsive?"
Post a Comment for "How To Make This You Tube Video Responsive?"