I spent a lot of time solving this problem today, and could not get the work to work using linear height or vertical alignment. The easiest solution I could find was to set <a /> to be relatively positioned so that they contained absolutes, and also: after they were completely taken out of the stream.
a{ position:relative; padding-right:18px; } a:after{ position:absolute; content:url(image.png); }
After that, the image seemed to automatically center in this case, at least under Firefox / Chrome. This might be a bit of a sloppier for browsers that don't support: after, due to the excessive interval on <a />.
Kenneth M. Kolano Nov 22 '13 at 9:53 on 2013-11-22 09:53
source share