Skip to content
Snippets Groups Projects
Commit 27d91104 authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

make iframe responsive

parent 0082d34a
Branches
Tags
No related merge requests found
......@@ -2,7 +2,6 @@
<div class="videoWrapper">
<iframe tabindex="0"
width="560" height="315"
[ngClass]="{'mobileFrame': deviceType === 'mobile', 'desktopFrame': deviceType === 'desktop'}"
src="https://www.youtube.com/embed/0mxQxPmU9Aw?autoplay=0" frameborder="0"
allowfullscreen
></iframe>
......
......@@ -4,3 +4,21 @@ p {
-webkit-hyphens: auto;
hyphens: auto;
}
iframe {
width: 100%;
}
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment