Centering

To center an element horizontally, set the display property to "block" and the left and right margins to "auto". For example to center an image in a table cell, use this:

td img {
   display:block;
   margin-left: auto;
   margin-right: auto;
}