Commit 661f763b authored by Malte Schmitz's avatar Malte Schmitz
Browse files

Initial commit

parents
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Seitenverhältnis</title>
<style type="text/css">
.red {
background-image: url('https://via.placeholder.com/1920x1080.png');
background-size: cover;
}
.green {
background-color: green;
}
.blue {
background-color: blue;
}
body {
margin: 0;
}
#main {
max-width: 1200px;
}
.aspect-ratio-box {
height: 0;
overflow: hidden;
padding-top: 56.25%;
position: relative;
}
.aspect-ratio-box-inside {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.youtube {
width: 60%;
height: 60%;
margin-left: 20%;
margin-top: 11.25%;
}
</style>
</head>
<body>
<div id="main">
<div class="aspect-ratio-box red">
<div class="aspect-ratio-box-inside">
<iframe class="youtube" src="https://www.youtube-nocookie.com/embed/Z-Bj3HXZJbg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div class="aspect-ratio-box green">
<div class="aspect-ratio-box-inside">
Hallo Welt
</div>
</div>
<div class="aspect-ratio-box blue">
<div class="aspect-ratio-box-inside">
Hallo Welt
</div>
</div>
</div>
</body>
</html>
Markdown is supported
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