We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7052651 commit b186659Copy full SHA for b186659
_includes/Youtube/styles.css
_includes/Youtube/youtube.html
_includes/youtube.html
@@ -0,0 +1,27 @@
1
+<div class="embed-container">
2
+ <iframe
3
+ width="640"
4
+ height="390"
5
+ src="https://www.youtube.com/embed/{{ include.id }}"
6
+ frameborder="0"
7
+ allowfullscreen
8
+ ></iframe>
9
+</div>
10
+<style>
11
+ .embed-container {
12
+ position: relative;
13
+ padding-bottom: 56.25%;
14
+ height: 0;
15
+ overflow: hidden;
16
+ max-width: 100%;
17
+ }
18
+ .embed-container iframe,
19
+ .embed-container object,
20
+ .embed-container embed {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ height: 100%;
26
27
+</style>
0 commit comments