• Resolved accari

    (@accari)


    Hello,

    I’m having the following problem. I have a table made in TablePress, which behaves just fine in normal conditions.

    I’m now trying to have it in accordion mode inside my shop page, and there’s something “funny”. First it aligns the header and body columns differently. Then, when I click on the header column, it aligns itself perfectly.

    I have made some CSS changes to the table, as follows:

    .tablepress-id-1,
    .tablepress-id-1 tr,
    .tablepress-id-1 tbody td,
    .tablepress-id-1 thead th,
    .tablepress-id-1 tfoot th {
    border: solid;
    border-width: 1px;
    font-size: 92%;
    }

    .tablepress-id-1 thead th {
    border-color: #0f1626;
    }

    .tablepress-id-1 tbody td {
    color: #474747;
    }
    .tablepress-id-1 .column-7 {
    width: 9em;
    }

    .tablepress-id-1 .column-4 {
    width: 6em;
    }

    .tablepress-id-1 .column-5 {
    width: 6em;
    }

    .tablepress-id-1 .column-3 {
    width: 11em;
    }

    .tablepress-id-1 .column-1 {
    padding-left: 10px;
    }

    A video-link to the problem: https://www.dropbox.com/s/g1dg5hjevbcfhvl/TablePressProblem.mov?dl=0

    I use Flatsome (v3) -theme.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The problem here is the accordion, which causes problems when a table uses e.g. horizontal scrolling or a TablePress Extension. My recommendation would be to uncheck the “Horizontal Scrolling” checkbox here. Instead, you could use the scroll mode of the TablePress Extension from https://tablepress.org/extensions/responsive-tables/ which is more reliable here.

    Regards,
    Tobias

    Thread Starter accari

    (@accari)

    Thank you very much, this fixed the problem!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header and body columns not aligning until clicking header column’ is closed to new replies.