Je souhaite définir la hauteur de l'élément Chatbox sur la hauteur de l'élément Videobox. Mais je ne sais pas comment faire ça. J'espère que vous pouvez m'aider ;). Je serais aussi bien si vous m'envoyez une méthode sans JavaScript.Régler la hauteur de l'élément sur la hauteur de l'élément avec% height
code:
#content {
width: 80%;
max-width: 1300px;
min-width: 900px;
margin: 80px auto;
}
#stream {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
width: 100%;
height: auto;
display: flex;
}
#video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
<div id="content">
<div style="width:75%;display:inline-block;vertical-align:top;" id="videobox">
<div id="stream">
<iframe id="video" src="http://player.twitch.tv/?channel=marmeladenoma" height="720" width="1280" frameborder="0" scrolling="no" allowfullscreen="true">
</iframe>
</div>
</div>
<div style="width:25%;float:right;display:inline-block;background-color:rgb(3, 40, 74)" id="chatbox">
hi
</div>
</div>
Merci pour votre aide :)