Make the tag display: inline-block; and they will surround the images as you expect, and they will be arranged horizontally (as they already are) using text-align: center; you installed globally.
You cannot vertically align an element in css if you are not using a table. Although you can make divs behave like tables with some css, but this will not work in IE: link text
Edit 2016:
Now you can use flexbox to vertically center the element.
source
share