I'm putting up circular pictures on my site this way:
HTML:
<table class="profiles-table">
<td>
<div class="david-circle profile-circle"></div>
</td>
<td>
<div class="david-circle profile-circle"></div>
</td>
<td>
<div class="david-circle profile-circle"></div>
</td>
</table>
CSS:
table.profiles-table {
width:100%;
}
table.profiles-table td {
vertical-align:top;
text-align:center;
width:33%;
}
div.david-circle {
background: url(./images/david.jpg) no-repeat;
}
div.profile-circle {
margin-bottom:30px;
width: 150px;
height: 150px;
border-radius: 75px;
-webkit-border-radius: 75px;
-moz-border-radius: 75px;
}
This doesn't center align the circle image. If I replace the div with text, it's center aligned. If I use img src="blah", it also works. Am I doing something obviously wrong?
Thanks!
background-position: center center
? – Paulie_D