6 jun
2017

Get input element positioned correctly

The input element is not going fully inside parent. I want input to be at center of the parent but its getting some margin from top. What css is to be added for fixing it?

#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>

COMENTARIOS

DEJA TU COMENTARIO

© 2017 website by Rubit Corporation