Create responsive video or slideshow embeds based on the width of the parent by creating an intrinsic ratio that scales on any device.Embed on Bootstrap
Rules are directly applied to
<object> elements; optionally use an explicit descendant class
.embed-responsive-item when you want to match the styling for other attributes.
<div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen=""></iframe> </div>