Support » Fixing WordPress » Table won't align, want centered

  • I have looked at everything with firebug on this page, and cannot find the style that is forcing the table to be left justified. In edit on WordPress it appears to be centered the way I want, but when I view in the browser (Chrome) it is left justified. The text is centered but table is not. What am I not seeing?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Andrew Nevins


    Read through this article. It explains how to center things on a website.

    Quick fix, edit the HTML to look like this:

    <table cellspacing="2" cellpadding="2" border="1" style="border-color: #C50143; border-width: 1px; ; width: 400px; margin: 0 auto;">

    1) Removed the class element from the table.
    2) Added margin: 0 auto; to the style portion.

    margin: 0 auto says, put nothing above (or below) of the table, but calculate and auto center the table.

    Hope this helps.

    You are the best Cenay. THis worked perfectly! And thanks for the super fast reply.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Table won't align, want centered’ is closed to new replies.