Skip to content

Instantly share code, notes, and snippets.

@lucprincen
Created October 25, 2018 14:57
Show Gist options
  • Save lucprincen/6bdf3dd87dde18a9167ab10899956e4c to your computer and use it in GitHub Desktop.
Save lucprincen/6bdf3dd87dde18a9167ab10899956e4c to your computer and use it in GitHub Desktop.
Scale video in ratio
.wp-block-embed{
position: relative;
.entry-content-asset{
width: 100%;
height: 0;
padding-top: 56.25%;
position: relative;
}
iframe{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment