i've recently started working on my own video player for fun however, I can't seem to tell where this space between my video element and my div elements is coming from here is an image of what i'm referring to. http://i.imgur.com/PfRT05j.png (Can't post an image so I had to post a link to it)
My styling:
*
{
padding: 0;
margin: 0;
}
div#player_container
{
width: 1280px;
margin: 0 auto;
}
video
{
background-color: #000;
}
div#player_controls
{
position: relative;
width: 100%;
height: 40px;
background-color: #383B42;
}
div#player_seekbar
{
position: absolute;
width: 100%;
height: 10px;
background-color: #3066DB;
z-index: 2;
}
div#player_buffered_bar
{
position: absolute;
width: 100%;
height: 10px;
background-color: #DEDEDE;
z-index: 1;
}
Here is my html document:
<!DOCTYPE html>
<html>
<head>
<title>Player - Version: 0.1a</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div id="player_container">
<video id="player" width="1280" height="720">
<source src="test_video.mp4" type="video/mp4">
<source src="test_video.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
<div id="player_controls">
<div id="player_seekbar"></div>
<div id="player_buffered_bar"></div>
</div>
</div>
</body>
</html>
Any help is much appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…