I have a button tag like this:
<button id="submit" style="height: 30px;">
<i id="loginLoadIcon" class="spinnerIcon"></i>
<span>Log in</span>
</button>
Which uses css like this:
.spinnerIcon {
width: 25px;
height: 25px;
background: transparent url('images/spinnerIcon.png') repeat-x 0 0;
}
How do I center the i tag vertically in the button tag? The button may be resized and the image must keep centered vertically.