I have an image next to an input, and I was wondering how I centered both with one another. I need the center of the image to be vertically aligned with the center of the input. How do I make this happen?
Markup:
<span class="my-span">
<input type="text" .../><a href="..."><img .../></a>
</span>
Setting the vertical-align to middle on the
<img>should put you in business:You can see it in action here.