0

Please guys how can I add a tittle above a video, that's the tittle of the video will be on top of the video while playing

Video tittle

19th Mar 2021, 12:59 AM
Collins Agofure
Collins Agofure - avatar
2 odpowiedzi
+ 2
Collins Agofure an easy way is to do an overlay <style> .container { position:relative; } .container video { position:relative; z-index:0; } .overlay { position:absolute; top:0; left:0; z-index:1; } </style> <div class="container"> <video id="video" width="355" height="441" onclick="play();"> <source src="video url" type="video/mp4" /> </video> <div class="overlay"> <p>Content above your video</p> </div> </div>
19th Mar 2021, 1:57 AM
BroFar
BroFar - avatar
0
I really appreciate your response, I have added it and also some controls but the little issue here is what if it's multiple videos
19th Mar 2021, 9:05 PM
Collins Agofure
Collins Agofure - avatar