I realize this is simply an HTML question, but I'm having a difficult figuring out the CSS stuff to center an <img /> tag within a <div> tag.
<div style="width: 180px; height: 180px; padding: 10px; margin-top: auto; margin-bottom: auto;">
<img src="file" alt="" style="width: 160px; height: 80px;" />
It centers horizontally just fine, but I cannot get it to center vertically within the div.
Can anyone point out what I'm missing???
View Complete Post