• Ok, so I was writing up a nice little post to break in my blog and I wanted a nice little centered table. I’m familiar enough with HTML, and noticed no nice little button to create a table, so I swapped to the HTML tab, added the <center></center> around my table, filled in all the info, then swapped back to the VISUAL tab to continue writing.
    Then I noticed my tables were left aligned. I swapped back to the HTML tab and low and behold my center tags were gone ??

    Did I do something wrong? Is there a setting somewhere, a plugin or something I need?

    I also tried installing a few plugins like wp-table and something else that were supposed to add cool little buttons, but they never actually added the buttons, and I’m not sure if that was user error or an incompatibility with the version of WP, I’m using 2.6.2

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter big9erfan

    (@big9erfan)

    I got the extra buttons added ( a ctrl+f5 fixed it *sigh* @ 2am trouble shooting ), but I still have issues with <center> tags being stripped before and after my tables. Should I wrap them in divs and align those centered to not have my code changed when swapping between the Visual and HTML tabs?

    Thanks again ??

    You would be much better off to assign a class to your tables and use css to center them. The <center> tag is deprecated, and the use of tables is really pretty much out of fashion for that matter. Unless you are actually displaying data in a table, css is the preferred method.

    Thread Starter big9erfan

    (@big9erfan)

    I wasn’t using tables for a general layout, it was actually for the data ( taking data points and displaying them along with averages ).

    I guess I’ll add a table to the css that is center aligned and just have it reference that. Hopefully that will work. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tables and the center tag’ is closed to new replies.