Need help? Check out our Support site, then


Centering a table?

  1. Hi guys,

    I'm new here and previously to center to images side by side I would use a table like this,

    <center><table>
    <tr>
    <td></td>
    <td></td>
    </tr>
    </table></center>

    However, this doesn't seem to work on WordPress.com. Is there a way around it?

    Thanks

  2. To center the whole table within the post:
    <table align="center"><tr><td></td>/tr></table>
    To center the cell contents:
    <td align="center"></td>

  3. Serendipity! That's exactly what I wanted to know!
    Thank you.

  4. Oh, well. It doesn't seem to work. Likely I'm still doing something wrong.

  5. @1tess: Perhaps you didn't apply wpvstp's suggestion correctly. Let me try to clarify: instead of
    <table>
    in the beginning, you put
    <table align="center">

  6. html always makes me stupid. I was making it too complicated: it works perfectly.
    I'm making a table with data in the cells and only now read the original post. It's easier in WP to center 2 or more pictures without using a table:
    Insert pictures into the post with "align none" for each one. Once they are visible in the editor, select both pictures (highlight), then use the column alignment tool in the visual editor to center them. You may want to add space between the pictures by going back to "Advanced Settings" to add horizontal space between them.

  7. panaghiotisadam,

    Thank you. I got it!
    I got so inspired with the success that I even figured out how to add colors!

  8. You can add pretty much all table code as shown in the examples here
    http://www.w3schools.com/html/html_tables.asp
    But beware, if the table get's too sophisticated and you miss a tag here or there it can mess up the whole thing.

Topic Closed

This topic has been closed to new replies.

About this Topic