Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change background-color of html5 video element

I've got the following website: beta.leifsigersen.com

There's a movie on the front page which sometimes takes a little while to load (sometimes less than a second, sometimes a few seconds). Before the movie is loaded there's black background/borders. How can I change the color of this?

I've tried to use CSS of the video-element, but without any luck.

like image 612
user809829 Avatar asked Nov 14 '13 10:11

user809829


1 Answers

Just add the background color to the html code itself. For example:

<video width="100%" height="100%" style="background-color: #fff;" src=""></video>
like image 54
Fuller93 Avatar answered Sep 20 '22 01:09

Fuller93