Hey guys,
I made a introduction vidoe to a site i am designing and since the rest of the site is in html5, i figured why not have the video with the video tag.
In doing so, I tried to center the video tag however the margin styling tha tI applied to the div element, which contains it and a skip intro link.
Here is my code:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="../assets/images/favicon.ico">
<link rel="icon" type="image/vnd.microsoft.icon" href="../assets/images/favicon.ico">
<link rel="icon" type="image/png" href="../assets/images/favicon.png">
<meta name="author" content="Irfan Mir (The Irf)" />
<meta name="description" content="The Official website for The Irf: Awesomeness Personified"/>
<meta name="keywords" content="Awesome, Irfan, Mir, Irf, The irf, the-irf, awesomeness, gangsta, gangsta gangsta pimp, HTML5, php, css, elegance, best"/>
<meta name="revised" content="Last Revised, 29/10/2010" />
<title>The Irf | Welcome Video</title>
<style>
body{
background:#000;
}
div{
margin:0px auto 0px auto;
}
li a{
color:#fff;
text-decoration:none;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
li a:hover{
text-decoration:underline;
}
</style>
</head>
<body>
<div>
<video src="introHD.mov" controls="controls" autoplay="autoplay">
Please upgrade your browser to meet the latest standards of the web
</video>
</div>
<div>
<ul>
<li><a href="the-irf.com/index.php" />Skip the Intro</a></li>
</ul>
</div>
</body>
</html>
What am I doing wrong and why isn’t the video and the link being centered?
Thanks in Advance,
Team 1504