Skip to content

Instantly share code, notes, and snippets.

View shiva2021's full-sized avatar
🎯
Focusing

Shivang Chaturvedi shiva2021

🎯
Focusing
View GitHub Profile
@shiva2021
shiva2021 / responsive-video.css
Created April 13, 2020 04:52 — forked from jaicab/responsive-video.css
Pure CSS solution for embed videos with an aspect ratio of 16:9
.video-container {
position: relative;
padding-bottom: 56.25%; /*16:9*/
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-container iframe,
.video-container object,