Check out this fiddle: http://jsfiddle.net/WdZeC/
<div class="text_align_center" style="text-align: center;">
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<div style="position: relative;">
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg">
<div style="position: absolute; left: 0; top: 0; width:27px; background-color: red;">1</div>
</div>
<img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><img width="27" height="28" src="http://www.kavoir.com/img/text-over-image.jpg"><div class="left">
</div>
I am aiming to achieve the following:
IMG IMG IMG IMG IMG IMG IMG
I want to overlay text onto the images, ideally at the center of them. Despite everything being set to text-align: center;, it appears that the text is still aligned to the left.