fluid video
This commit is contained in:
parent
c4bbf48e0f
commit
274455885d
@ -27,9 +27,16 @@
|
|||||||
<!--Hot tortilla wrap-->
|
<!--Hot tortilla wrap-->
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<h1>Friday Night Funkin' - Rhythm game extraordinaire</h1>
|
<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"
|
<div id="coolervidwrapper">
|
||||||
allowfullscreen></iframe>
|
<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">
|
<div class="coolBox">
|
||||||
<p class="description">Friday Night Funkin' is a dope ass rhythm game.</p>
|
<p class="description">Friday Night Funkin' is a dope ass rhythm game.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#wrapper
|
#wrapper
|
||||||
{
|
{
|
||||||
padding: 25px;
|
padding: 20px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,17 +21,11 @@ h1 {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe {
|
|
||||||
margin: auto;
|
|
||||||
display:block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-image: url('img/skin-funkin-cardbordtoast.jpg');
|
background-image: url('img/skin-funkin-cardbordtoast.jpg');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-size: 100% 130%;
|
|
||||||
color:white;
|
color:white;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
@ -67,3 +61,25 @@ a { color:inherit;
|
|||||||
{
|
{
|
||||||
color: #fa5c5c;
|
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%;
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user