# Unable to center image in table

**URL:** <https://forum.kirupa.com/t/unable-to-center-image-in-table/169485>\
**Category:** Uncategorized\
**Created:** [November 16, 2005, 5:02pm UTC](https://forum.kirupa.com/t/unable-to-center-image-in-table/169485 "2005-11-16T17:02:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakepeg](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jakepeg](https://forum.kirupa.com/u/jakepeg)\
**Post date:** [November 16, 2005, 5:02pm UTC](https://forum.kirupa.com/t/unable-to-center-image-in-table/169485/1 "2005-11-16T17:02:22Z")

</div>

for some reason I cannot center an image in a table. it works fine on a mac in IE but not on a PC in IE - have tried various stuff, such as div tags, p tags, centering the table, centering the image . . .

```auto

<td width="128" height="140" align="center" valign="middle" bgcolor="#EDECDA"> <p align="center">
<a href="product.asp?intProdID=<%= rsProdInfo("productID")%>" target="_self">
<img src="photos/small/<% =rsProdInfo("productImg") %>" border="0" align="absmiddle">
</a>
</p>
</td>

```
