HOW TO CENTER A TABLE USING CSS

Both IE and FIREFOX view tables differently. To center a table you will need to double up your code to make certain it works in both IE and Firefox. Look at this page in both IE and Firefox to see the effect. Hit VIEW > SOURCE to see the source code.

This is the IE Table. It is centered if you look at this page in IE but on the left it you look at it in Firefox.

Cat Dog
Horse Bird

This is the Firefox table. It is Centered if you look at this page in Firefox, but on the left if you look at it in IE.

Cat Dog
Horse Bird

So to combine the effect so that the table below is centered in both Browsers, the code will look like this.

Cat Dog
Horse Bird