After some research, I found another question about stackoverflow: The image inside the div has extra space under the image
Browsers seem to create extra space above / below the line, so you might want to change the height of the line, here is an example:
http://jsfiddle.net/eY7Ms/13/
so if you want to adjust the vertical extra space, you can do something like this:
.boxWithVerticalCenteredContent { height: 4em; line-height: 3.6em; }
I know that this is not perfectly focused and fixed in height, but if you want to focus on the absolute, you can use position: absolute and top, bottom, left, right
r3bel source share