- 8 views
To make embedded video responsive you should do these steps:
- Install module Asset Injector
- Create new CSS Injector with code below, and save.
- Clear cache
.field--name-field-media-oembed-video {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 56.25%;
}
.media-oembed-content {
position: absolute;
top: 0;
left: 0;
right: 0;
border: 0;
width: 100%;
height: 100%;
}That`s it. Enjoy!