Skip to content

Instantly share code, notes, and snippets.

@AlphaBlossom
Created August 9, 2020 19:46
Show Gist options
  • Save AlphaBlossom/df2da268c2b54a59a00036a5bd4a31f4 to your computer and use it in GitHub Desktop.
Save AlphaBlossom/df2da268c2b54a59a00036a5bd4a31f4 to your computer and use it in GitHub Desktop.
Fix the embed issue with GrooveVideo's embed code. The ".groovevideo-widget-border-solid" class may change depending on widget settings, so make sure to get the correct class of the iframe's parent div and change if needed.
<style>
/* parent of iframe */
.groovevideo-widget-border-solid {
position: relative;
padding: 56.25% 0 0 0;
margin: 0;
}
/* iframe */
.groovevideo-widget-border-solid iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
margin: 0;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment