I attempted to vertically align an image next to text within my link. Thus far, I've relied on a background image to achieve perfect vertical centering for the image of my text.
CSS
.label {
margin: 0 0 0 15px;
padding: 0;
color: #fff;
}
a.moreinfo {
background: url(../images/gallery/add.png) no-repeat left center;
cursor: pointer;
}
HTML
<a class='moreinfo'><span class='label'>MORE INFO</span></a>
Now, I am interested in avoiding the use of background images and instead inserting an image into the HTML code (img src). When using vertical-align: middle, the image does not align precisely as with the background. How can I achieve the same alignment with an image included in the HTML code? Thank you.