Msg#: 4640467 posted 11:26 am on Jan 27, 2014 (gmt 0)
The moment you set "float:left;" on div.img class you lost.
The trick is to not float content when there's no need. display:inline-block is all you'd need to get the desired result.
You the use text-align:center on the parten (all the others are not needed), also the default is to have auto on height and width, no need to set it unless you're aiming to overrule using specificity or so.