Tag Archives: How to vertically align an image inside a div?

How to vertically align an image inside a div?

Question Question How can you align an image inside of a containing div? Example In my example, I need to vertically center the <img> in the <div> with class =”frame” : <div class=”frame” style=”height: 25px;”> <img src=”http://jsfiddle.net/img/logo.png” /> </div> .frame‘s height is fixed and image’s height is unknown. I can add new elements in .frame… Read More »