I can't center tables in wordpress! (4 posts)

  1. Thief_PL
    Posted 4 years ago #

    Hi i am having trouble centering tables in WordPress. When i put this

    <table border="1" align="center">
    the table is centered in the editor, but when i publish it the table is still in the left!!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

  3. samfusion
    Posted 4 years ago #

    use <p> </p>
    <p align=center>table /table </p>

  4. Pioneer Web Design
    Posted 4 years ago #

    There is likely a CSS Style set in your theme or plugin called 'table' (that justifies the location of all tables that do not have another CSS style called). Create a new style and call that one:

    Change to:

    <table class="tablemine" /*....the rest......*/

    Add to theme or plugin CSS:

    .tablemine {
    /*.....more (copy from existing table style if needed)....*/

    Often times theme and plugin writers create CSS with a name that may be called in any part of your site which can cause issues. If no class is created called 'table' the defaults for the table attribute are used.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.