How to Vertically Align an Image inside a DIV using CSS?

Posted by Pinki | Updated on

In this example you will learn, how to Vertically Align an Image inside a DIV using CSS. You can align an image vertically center inside a

by using the CSS vertical-align property in combination with the display: table-cell; on the containing div element.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers