Centering (horizontally and vertically) an image in a box

in Blog This article was originally published by Julian Gude on The Remarkable Blog from exceler8.com

<div class=”posterous_bookmarklet_entry”> <blockquote class=”posterous_long_quote”><h1>Centering (horizontally and vertically) an image in a box</h1> The problem We want to center an image inside a container, bigger than the image and with assigned dimensions. The image is not a background one, it’s a true <img> element. Any image has well defined dimensions, so the easiest and most reliable […]