I've been looking at this code for a while but I can't figure out what's wrong with it. The second 2 elements are slightly below the first element and I have no idea why. Here's the HTML:
#overlayedbox{
font-family: OpenSans, arial, "sans-serif";
background: rgba(50,50,50,0.6);
border-radius: 25px;
padding: 20px;
width: 200;
height: 15px;
text-align: center;
verticle-align: middle;
margin-left: auto;
margin-right: auto;
}
#arrow-left {
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-right: 10px solid white;
}
#arrow-right{
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid white;
float: right;
}
<div id="overlayedbox">
<div id="arrow-left"></div>
1.0.0
<div id="arrow-right"></div>
</div>
This is supposed to form an ovular shape with an arrow facing left on the left side, and an arrow facing right on the right side with text in the middle. When I run it, the elements align fine horizontally, but after the first arrow, they drop down a little.