Tag Archives: youtube

Responsive Youtube Embed


I came across a small problem when adding a video from YouTube to one of my blog posts. Since this website is “responsive”, I needed the video to re-size depending on the browser size or device width. But when I added the embed code, the video had a fixed height and width. This looked fine on desktop computers, but pretty much broke the design when viewing on a mobile device.