bratsun
11/19/2013 - 11:24 AM

Responsive video in iframe

Responsive video in iframe

/* parent */
.youtube-url .field-item {
  height: 0;
  padding-bottom: 53.25%;
  padding-top: 25px;
  position: relative;
}

/* video iframe */
.youtube-url iframe {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}