<!doctype html> <html> <head> <meta charset="utf-8" /> <title>test</title> <style> span { height:200px; width:200px; display:table-cell; *display: block; vertical-align:middle; text-align:center; border: 1px solid red; } img { border:1px solid blue; margin:0; } </style> </head> <body> <span><img src="img.jpg" /></span> </body> </html>