is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle →. Shuffle™ includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.

Bootstrap class: .embed-responsive

<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="//" allowfullscreen></iframe>


Tips 💡

Sass source

/* _embed.scss:3 */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;

  &::before {
    display: block;
    content: "";

  video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;

Uses variables

Code copied to the clipboard.

Copying failed

/* _embed.scss:3 */

More in Bootstrap Misc