diff options
| author | Mark Otto <[email protected]> | 2014-03-16 19:03:53 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-16 19:03:53 -0700 |
| commit | 2a43e7e78a59c70e217383c12c9ef0482cabb163 (patch) | |
| tree | 8fc0b4560d171f63efb353d4c9965aa5c761d82c /docs/_includes/components/responsive-embed.html | |
| parent | bdb70fa471965728609d86c001384791fa44398b (diff) | |
| download | bootstrap-2a43e7e78a59c70e217383c12c9ef0482cabb163.tar.xz bootstrap-2a43e7e78a59c70e217383c12c9ef0482cabb163.zip | |
Break up docs into includes
Diffstat (limited to 'docs/_includes/components/responsive-embed.html')
| -rw-r--r-- | docs/_includes/components/responsive-embed.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/_includes/components/responsive-embed.html b/docs/_includes/components/responsive-embed.html new file mode 100644 index 000000000..bf65599d7 --- /dev/null +++ b/docs/_includes/components/responsive-embed.html @@ -0,0 +1,23 @@ +<div class="bs-docs-section"> + <h1 id="responsive-embed" class="page-header">Responsive embed</h1> + + <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> + <p>Rules are directly apply to <code><iframe></code>, <code><embed></code> and <code><object></code> elements, optionally use of an explicit descendant class <code>.embed-responsive-item</code> when you want to match the styling for other attributes.</p> + <p><strong>Pro-Tip!</strong> You don't need to include <code>frameborder="0"</code> in your <code><iframe></code>s as we override that for you.</p> + <div class="bs-example"> + <div class="embed-responsive embed-responsive-16by9"> + <iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe> + </div> + </div> +{% highlight html %} +<!-- 16:9 aspect ratio --> +<div class="embed-responsive embed-responsive-16by9"> + <iframe class="embed-responsive-item" src="…"></iframe> +</div> + +<!-- 4:3 aspect ratio --> +<div class="embed-responsive embed-responsive-4by3"> + <iframe class="embed-responsive-item" src="…"></iframe> +</div> +{% endhighlight %} +</div> |
