aboutsummaryrefslogtreecommitdiff
path: root/docs/components
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-07-12 02:13:32 -0700
committerMark Otto <[email protected]>2014-07-12 02:13:32 -0700
commit7a70a8988bac1457fba210787f8b86d944520865 (patch)
tree79d3c8a1a33fc7f22dd96546318f255d045e3afe /docs/components
parent55c660102e9c385c00746942f6bf083f415f4cac (diff)
downloadbootstrap-7a70a8988bac1457fba210787f8b86d944520865.tar.xz
bootstrap-7a70a8988bac1457fba210787f8b86d944520865.zip
move responsive embed
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/responsive-embed.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/components/responsive-embed.md b/docs/components/responsive-embed.md
new file mode 100644
index 000000000..c9e0f5807
--- /dev/null
+++ b/docs/components/responsive-embed.md
@@ -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 applied to <code>&lt;iframe&gt;</code>, <code>&lt;embed&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>
+ <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>
+ <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>