This may be a simple question, but it really drives me crazy. I just want to set the height and width of the HTML5 video.
I am using this code:
<video controls="controls" width="1000" id="video"> <source src="sintel-trailer.ogv" type='video/ogg; codecs="theora, vorbis"'> <source src="sintel-trailer.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> </video>
Result: 
If I add the height attribute
<video controls="controls" width="1000" height="300" id="video"> <source src="sintel-trailer.ogv" type='video/ogg; codecs="theora, vorbis"'> <source src="sintel-trailer.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> </video>
Result: 
So, am I missing something?
Can anybody fix the mistake I'm making.
html5 width height video
coder
source share