I have a problem with vertical alignment of images. I have a div container with a row height and height of 40 pixels. Inside there is also a div containing 2 img and one span . The image height is set to 30 pixels, so the images are reduced.
The vertical alignment property img set to average. However, the generated offsets are 8px at the top and 2px at the bottom - in Firefox, as well as in Chrome. If I set the vertical alignment property to top or baseline , the images are on the top edge, setting it to bottom moves them down (without an interval).
I tried to find a way to align them correctly without additional markup, but I cannot find anything. I also tried the solution for How to vertically align an image inside a div , but I had no luck with that.
I created jsfiddle to illustrate the problem: http://jsfiddle.net/pbQDS/
Hope you can help! Thanks!
source share