Why isn't this table centering on the page???

Amanda Watson
Amanda Watson used Ask the Experts™
on
Hi There,
I am totally confused.
I have set up a table to sit centerd on this page here:

http://amandawatson.com.au/meryl/stationary.html

However as you can see its sitting left aligned....why on earth is the centering not working?

Can someone help me please?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
It most probably depends on the browser. IE8 and IE6 display the table dynamically centered.
Amanda WatsonWeb Developer

Author

Commented:
How can I fix this please?
Sorry, I am not HTML expert. One solution is here: http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Firefox/Q_24584606.html

But you are not writing which is the problematic browser, so I would recommend to ask in appropriate zone: http://www.experts-exchange.com/Internet/Web_Browsers/#browseZones
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Amanda WatsonWeb Developer

Author

Commented:
Thanks for that I tried adding

      margin:0 auto;
to the body tag but nothing happened.

HELP
Amanda WatsonWeb Developer

Author

Commented:
Also this problem isn't browser dependent.
It isn't working on any browsers

Its so strange. I did something similar not long ago and didn't get this result.

What on earth is going on
Try replacing <body> with <body align=center>

If that does not work put a <center> right after the body tag, and put a </center> right before the </body>

David S.Consultant & Challenge Subduer
Top Expert 2009
Commented:
The  margin:0 auto;  should be applied to the outermost <table>, not <body>.


P.S. Are you aware that your page contains XHTML errors?
http://validator.w3.org/
Amanda WatsonWeb Developer

Author

Commented:
Hi Kravimir,
That worked applying the tag to the table.
Thanks for the validator tip also

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial