• Resolved Growltiger

    (@growltiger)


    I have a website with a very large number of tables. After upgrading to V2 some of the tables shifted from the left to the centre. I think I have tracked it down – if the table has a max-width it now gets centred.

    I have made a simple test page to demonstrate the problem (link above).

    The Plugin CSS is simply:
    .tablepress-id-1 {
    max-width: 100px;
    }

    The table is centred. It used to be on the left.
    If I add: margin-left:0; then it moves it back to the left as it should be.

    Please tell me, is this a bug you will fix, or should I go through all my CSS to add margin-left:0 everywhere? Thanks.

    • This topic was modified 1 year, 3 months ago by Growltiger.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You are right, this is a new default behavior. Tables that are not full width, will be centered, as this is what most users want.

    To change that on your site, you can simple add this to the top of the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress {
        margin: 0 0 1em 0;
    }

    By adding this at the top of the CSS, you won’t have to do it for each table separately.

    Regards,
    Tobias

    Thread Starter Growltiger

    (@growltiger)

    That explains it, thank you.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi

    sure, always happy to help!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug in V2, table centred when it should not be’ is closed to new replies.