Table alignment not possible?

  • Unknown's avatar

    I was adding pictures to my posts using tables and wanted them to be centered, but when I add the source code it won’t change anything, the table is still aligned to the right. The content of the table i can perfectly align just not the table itself so it would appear in the middle of the screen with text on top and below of it.
    I am using chrome, but have the same issue with IE and Firefox. refreshing and deleting cookies/history/etc won’t change anything.

    table align=”center’ won’t work

    my blog post: http://sanshiru.wordpress.com/2009/12/24/a-christmas-carol-or-how-you-do-not-wish-to-spend-christmas/

    I even made a test post with

    table align=”center”
    tr
    td
    blargh
    /td
    /tr
    /table

    but won’t work

    thanks for the help in advance

    ps: (p align=”center”) table (/p) won’t work either and the center tag neither

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I am not sure why, but it appears that the tables must be centered in a div.
    odd…

    <div align="center">
    <table align="center">
    <tbody>
    <tr>
    <td style="padding-right:.5em;">LEFT_IMAGE_HERE</td>
    <td style="padding-left:.5em;"> RIGHT_IMAGE_HERE</td>
    </tr>
    <tr>
    <td style="padding-right:.5em;">LEFT_CAPTION_HERE</td>
    <td style="padding-left:.5em;">RIGHT_CAPTION_HERE</td>
    </tr>
    </tbody>
    </table>
    </div>

    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    <div align="center">
    <table align="center">
    <tbody>
    <tr>
    <td style="padding-right:.5em;"><a href="http://picasaweb.google.co.uk/lh/photo/Ut-o6ghvftEYR8t8FCF9dw?authkey=Gv1sRgCKG5mPvbsq6y6gE&feat=embedwebsite"><img class="aligncenter" src="http://lh5.ggpht.com/_O34L-02nMwE/SzOef0F-N9I/AAAAAAAAAVM/kz5XW66naX4/s144/December%202009%20095.JPG" alt="" width="144" height="108" /></a></td>
    <td style="padding-left:.5em;"><a href="http://picasaweb.google.co.uk/lh/photo/pwSKvaGDR2lfTehzTfujNg?authkey=Gv1sRgCKG5mPvbsq6y6gE&feat=embedwebsite"><img class="aligncenter" src="http://lh5.ggpht.com/_O34L-02nMwE/SzOhUi2HDBI/AAAAAAAAAZs/BTIC-r18c4c/s144/December%202009%20173.JPG" alt="" width="144" height="108" /></a></td>
    </tr>
    <tr>
    <td style="padding-right:.5em;font-family:lucida sans unicode;font-size:11px;text-align:center;line-height:.9em;width:144px;">Chicago Skyline from outside Shed Aquarium</td>
    <td style="padding-left:.5em;font-family:lucida sans unicode;font-size:11px;text-align:center;line-height:.9em;width:144px;">Chicago Skyline from inside Shed Aquarium Restaurant</td>
    </tr>
    </tbody>
    </table>
    </div>
  • Unknown's avatar
  • Unknown's avatar

    oh thanks so much specially for all the work with the source code! :)

  • The topic ‘Table alignment not possible?’ is closed to new replies.