Getting image in the Middle of a div

I took me about 15 min to find a way of centering image in the middle of a div. In the end I ended up with a code like this:

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box