So I have been using the following code to place on my personal website:
<!-- Load the Twitch embed script -->
<script src="https://embed.twitch.tv/embed/v1.js"></script>
<div class="twitch">
<div class="twitch-video">
<iframe
src="https://player.twitch.tv/?channel=kittiekitsuneko=www.kittiekitsuneko.com&parent=kittiekitsuneko.com&autoplay=false"
frameborder="0"
scrolling="no"
allowfullscreen="true"
height="100%"
width="100%">
</iframe>
</div>
</div>
And here’s the CSS:
.twitch {
margin-top: 38vw
}
.twitch .twitch-video {
padding-top: 56.25%;
position: relative;
height: 0;
}
.twitch .twitch-video iframe {
position: absolute;
width: 100%;
height: 100%;
top: 0;
}
Nothing seems to be working and I keep getting an error. … Please help!