Skip to content

Instantly share code, notes, and snippets.

View abdulbasetbasher's full-sized avatar

Abdulbaset Basher abdulbasetbasher

View GitHub Profile
@abdulbasetbasher
abdulbasetbasher / responsive-video.css
Created June 7, 2018 22:54 — 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,