Home »
» How to embed responsive YouTube videos with CSS
How to embed responsive YouTube videos with CSS
Below is the method that I use to embed responsive or fluid YouTube videos. This is based on an article by Thierry Koblentz with some modifications. This method also works for other video sources, but this article and the changes I made are specifically for YouTube videos. (Featured video: "Middle" by DJ Snake ft. Bipolar Sunshine.)
To use this method insert the following pieces of CSS code