Support » Themes and Templates » Cannot Center Table

  • Hello All,

    I can get the table to align left and to align right, however when it comes to align center it only aligns left.

    Does anyone know the cause of this? It happens in all editors such as tinymce and fckeditor.

    Here is the page that I attempted to center the table:


Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi


    Forum Moderator

    table.foobar {
    margin:0 auto;

    esmi, I’m guessing you’ve answer the question here, but I’m not able to conjure the context I guess I need to benefit from it :/
    is this code example for css?

    how would I place it in relation to the following table?

    <table border="0" width=>

    thanks for your patience! I duhno;)

    esmi – sorry for taking so long to get back, your solution worked like a charm.

    jeremyhelm – In case you haven’t figured it out yet which I’m sure you have, I simply added the css to the bottom of my stylesheet and saved it. All tables now have the ability to center for that theme.

    Thank you so much :)!

    After a lot of trial and error and the lead from esmi above, I found that I could center a table with this as the beginning of the table code:

    <table style=”width: 480px; margin: 1px auto;” align=”center”>

    (The key was the “margin: auto” setting. In my case I also wanted a 1px margin.)

    Hope this helps others.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot Center Table’ is closed to new replies.