html td image center code example Example: css how to center images in a table cell td img{ display: block; margin-left: auto; margin-right: auto; }