I'm making a web page that contains videos and playlist. I'm creating something like this
As you can see the playlist has overflowed and is not inline with the video though I have given the same dimensions for both and it is working when the number of videos in the playlist is less than 4. Also scroll is not working.
Here is my code:
#video_player {
display: table;
line-height: 0;
font-size: 0;
background-image: url('recycled_texture_background_by_sandeep_m-d6aeau9_PZ9chud.jpg');
}
#video_player video,
#video_player figcaption {
display: table-cell;
vertical-align: top;
}
#video_player figcaption {
width: 20%;
height: 100px;
}
#video_player figcaption a {
display: block;
opacity: .5;
transition: 1s opacity;
}
#video_player figcaption a img,
figure video {
width: 100%;
}
#video_player figcaption a:hover {
opacity: 1;
}
@media (max-width: 1000px) {
#video_player video,
#video_player figcaption {
display: table-row;
}
#video_player figcaption a {
display: inline-block;
width: 33.33%;
}
}
<figure id="video_player">
<video controls poster="83da1111cd7046afa5ddc90e31888d8d.jpg" autoplay="" id="video1" muted>
<source src="video0.mp4" type="video/mp4" id="kl">
<source src="video0.webm" type="video/webm">
</video>
<figcaption style="max-height:216px ;overflow:scroll" >
<a id="q" href="video0.mp4"><img src="hqdefault (3).jpg" id="b4" alt="Nambia Timelapse 1" style="height: 72px;"></a>
<a href="video1.mp4" id="q1"><img src="hqdefault (2).jpg" id="b5" alt="Nambia Timelapse 1" style="height: 72px;"></a>
<a href="video3.mp4" id="q2"><img src="hqdefault.jpg" id="b6" alt="Nambia Timelapse 2" style="height: 72px;"></a>
<a href="video3.mp4" id="q3"><img src="hqdefault (1).jpg" id="b7" alt="Nambia Timelapse 3" style="height: 72px;"></a>
</figcaption>
</figure>
overflow:'scroll' is not working. Also overflow is not working on firefox. I want to work both for horizontal and vertical scroll. Please help.

height:216px;to your#video_player figcaption, and let me know if it helps, by replacing your100px;