fluid video

This commit is contained in:
Cameron Taylor 2020-11-18 15:35:28 -08:00
parent ea047db8d1
commit b9011bdcfb
2 changed files with 33 additions and 10 deletions

View file

@ -27,9 +27,16 @@
<!--Hot tortilla wrap-->
<div id="wrapper">
<h1>Friday Night Funkin' - Rhythm game extraordinaire</h1>
<iframe width="960" height="540" src="https://www.youtube.com/embed/HMNKUo3CCpU" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<div id="coolervidwrapper">
<div class='videoWrapper'>
<iframe width="560" height="349" src="https://www.youtube.com/embed/HMNKUo3CCpU" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
</div>
<div class="coolBox">
<p class="description">Friday Night Funkin' is a dope ass rhythm game.</p>
</div>

View file

@ -8,7 +8,7 @@
#wrapper
{
padding: 25px;
padding: 20px;
margin: auto;
}
@ -21,17 +21,11 @@ h1 {
text-align: center;
}
iframe {
margin: auto;
display:block;
}
body {
background-image: url('img/skin-funkin-cardbordtoast.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-size: 100% 130%;
color:white;
background-color: #000;
font-family: Arial, Helvetica, sans-serif;
@ -67,3 +61,25 @@ a { color:inherit;
{
color: #fa5c5c;
}
#coolervidwrapper {
padding-left: min(12em, 75%);
padding-right: min(12em, 75%);
min-width: 30%;
}
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
max-block-size: 1400px;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}