• Resolved dhomas

    (@dhomas)


    I am having an issue with two tables on the same page using Custom CSS, where the 2nd table does not make use of the CSS defined for it. The same table CSS however, on another page where that table is by itself, is working with the defined CSS.

    The Custom CSS is shown below, where table id 7 is the first table that works, and id=8 is the second table on the first page that doesn’t work, and the only table on the second page where it does work.

    .tablepress-id-7 .row-1,
    .tablepress-id-7 .row-16,
    // … removed to reduce size here
    .tablepress-id-7 .row-106,
    .tablepress-id-7 .row-108 {
    background-color: #d9edf7;
    font-weight: 700;
    }

    .tablepress-id-8 .row-1,
    .tablepress-id-8 .row-5,
    .tablepress-id-8 .row-12 {
    background-color: #d9edf7;
    font-weight: 700;
    }

    I have six other tables in the Custom CSS defined similarly, but I only use one table on a page in all other uses. And in all other uses, with one table per page, they work fine.

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter dhomas

    (@dhomas)

    I’d prefer to send them privately somehow, one isn’t intended to be public yet.

    Thread Starter dhomas

    (@dhomas)

    I prefer the good ol days when you could email people. ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you can email me, the address is in the main plugin file “tablepress.php”.

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the links! In some way it’s just luck that this is working, it’s caused by a JS error.

    To fix everything, please uncheck the “Use DataTables” checkboxes on the table’s “Edit” screen (you can not use this feature, as you are using #colspan# to merge cells), and then also uncheck the “Alternating Row Colors” checkboxes.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom CSS doesn’t work with multiple tables on same page’ is closed to new replies.