Policy 1707 commit to LF
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / CSS / bootstrap / docs / _includes / components / responsive-embed.html
1 <div class="bs-docs-section">
2   <h1 id="responsive-embed" class="page-header">Responsive embed</h1>
3
4   <p>Allow browsers to determine video or slideshow dimensions based on the width of their containing block by creating an intrinsic ratio that will properly scale on any device.</p>
5   <p>Rules are directly applied to <code>&lt;iframe&gt;</code>, <code>&lt;embed&gt;</code>, <code>&lt;video&gt;</code>, and <code>&lt;object&gt;</code> elements; optionally use an explicit descendant class <code>.embed-responsive-item</code> when you want to match the styling for other attributes.</p>
6   <p><strong>Pro-Tip!</strong> You don't need to include <code>frameborder="0"</code> in your <code>&lt;iframe&gt;</code>s as we override that for you.</p>
7   <div class="bs-example" data-example-id="responsive-embed-16by9-iframe-youtube">
8     <div class="embed-responsive embed-responsive-16by9">
9       <iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
10     </div>
11   </div>
12 {% highlight html %}
13 <!-- 16:9 aspect ratio -->
14 <div class="embed-responsive embed-responsive-16by9">
15   <iframe class="embed-responsive-item" src="..."></iframe>
16 </div>
17
18 <!-- 4:3 aspect ratio -->
19 <div class="embed-responsive embed-responsive-4by3">
20   <iframe class="embed-responsive-item" src="..."></iframe>
21 </div>
22 {% endhighlight %}
23 </div>