Select Page

Tag: YouTube

How to maintain aspect ration of YouTube videos with CSS

How to maintain aspect ration of YouTube videos with CSS

Hey, you can create responsive YouTube videos with the help of CSS only and maintain its aspect ratio without needing any third-party JavaScript library. The easiest and quickest way to do it is with the following CSS. HTML <div class=”container”>...