• Resolved redaccionolympia

    (@redaccionolympia)


    Hello there!

    I hope you’re fine. I’m writing this to find a solution. I want to put different colors in some positions of the league tables. Both are on the same page, so I need the CSS to understand that I want to change only one of the tables and not both. I tried with the code table#Table and everythin, but that doesn’t seem to work.

    Thanks in advance!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @redaccionolympia ,

    You will need to add also the ID of your table to differentiate between the two. So for example for the first Table instead of using:

    .post-2060 .sp-league-table tbody tr:nth-child(1) td {
        background: #17f6eb !important;
    }

    you can use the following:

    .post-2060 .sp-league-table#DataTables_Table_1 tbody tr:nth-child(1) td {
        background: #17f6eb !important;
    }

    If you want to change specifically the second Table then you can use #DataTables_Table_4

    Thanks,
    Savvas

    Thread Starter redaccionolympia

    (@redaccionolympia)

    It worked! Thank you so much ??

    Plugin Contributor Savvas

    (@savvasha)

    You are welcomed ??

    Thanks,
    Savvas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Colors on table’ is closed to new replies.