My goal is to vertically align an image inside an anchor element using the following code:
<ul class="thumbnails">
<li class="span2">
<a href="#" class="thumbnail">
<img src="http://www.forodefotos.com/attachments/barcos/17639d1298388532-barcos-vapor-antiguos-barcos-antiguos-vapor-mercantes.jpg" style="max-height: 150px">
</a>
</li>
</ul>
I have tried various methods found online, but none seem to work for me. I am utilizing the Bootstrap thumbnails class, and I'm not sure if this is causing the issue.
Setting a line-height as suggested hasn't yielded the desired result either.
Please view a simple plunker for reference.
http://plnkr.co/edit/DsQ80oEiHFn4ma4qfNW8
UPDATE: I've made updates to the plunker. Text vertical alignment is functioning properly, but aligning images remains unresolved.