Consider the following code:
HTML:
<div>
<label for='name'>Name:</label>
<input type='text' id='name' />
</div>
CSS:
div {
height: 50px;
border: 1px solid blue;
}
What would be the easiest method to put the label
and the input
in the middle of the div
(vertically) ?