Centering table or div on Page

One question that seems to reappear again and again is “How can I center my table or div on my page?” It’s really fairly simple. First remember:

  • Use a valid doctype on your page
  • The <table> or <div> has to have a width less then 100%
  • The left and right margins need to be set at auto

You can read a more detailed tutorial Center Pages in Browser Window

Comments

  1. The instructions above do not tell a person how to do the actual steps – just what needs to be done?

  2. If you followed the link to the detailed tutorial, the instructions are there.

Speak Your Mind

*