Skip to content

Commit 60874f2

Browse files
committed
Update YouTube embed post
1 parent 7a1993a commit 60874f2

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

docs/_posts/2010-06-02-post-video-youtube.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,25 @@ categories:
44
- Post Formats
55
tags:
66
- Post Formats
7-
last_modified_at: 2017-03-09T12:58:20-05:00
7+
last_modified_at: 2017-03-23T15:33:37-04:00
88
---
99

10-
<iframe width="640" height="360" src="https://www.youtube-nocookie.com/embed/l2Of1-d5E5o?controls=0&amp;" frameborder="0" allowfullscreen></iframe>
10+
<div class="embed-responsive embed-responsive-16by9">
11+
<iframe width="640" height="360" src="https://www.youtube-nocookie.com/embed/l2Of1-d5E5o?controls=0&amp;" frameborder="0" allowfullscreen></iframe>
12+
</div>
1113

12-
This post test YouTube video embeds.
14+
This post tests YouTube video embeds.
15+
16+
Simply wrap embeds with a `<div>` element and the appropriate classes:
17+
18+
```html
19+
<!-- 16:9 aspect ratio -->
20+
<div class="embed-responsive embed-responsive-16by9">
21+
<iframe class="embed-responsive-item" src="..."></iframe>
22+
</div>
23+
24+
<!-- 4:3 aspect ratio -->
25+
<div class="embed-responsive embed-responsive-4by3">
26+
<iframe class="embed-responsive-item" src="..."></iframe>
27+
</div>
28+
```

0 commit comments

Comments
 (0)