How can I center the input
element inside its parent without any top margin? What CSS changes do I need to make?
#menu
{
height:30px;
background: #ccc;
}
#board-name
{
display:block;
margin-left:auto;
margin-right:auto;
height: 80%;
vertical-align: middle;
min-width:200px;
}
<div id="menu">
<span id="plus">+</span>
<input id="board-name" value=''/>
</div>