I'm having trouble getting this video element centered on my webpage. Here's the code snippet I've been working with:
HTML
<div id="container">
<video id="vid" x-webkit-airplay="allow" controls width="640" height="360" src="http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8"></video>
</div>
CSS
#vid {
margin: 0 auto;
}
You can see the full code on this jsfiddle link. Can anyone help me figure out why my <video>
element is not centering itself?