WP-Table Reloaded
Highlight or bold the last three rows (4 posts)

  1. Nikolas
    Posted 5 years ago #


    is there a way to highlight automatically the last three rows of the table?

    Thank you!

  2. TobiasBg
    Plugin Author

    Posted 5 years ago #


    no, sorry, that's not possible. You can only use the row ID based selectors.

    For the last row it might be possible by using a new CSS3 selector, like tr:last, but I don't have any experience on those.

    Instead, you could use span HTML tags inside the last three rows and do the highlighting with those.

    Best wishes,

  3. Nikolas
    Posted 5 years ago #

    Hi there, thanks for reading.

    Suppose there is a counter that counts all the rows. e.g. 15
    The 3 variables
    a = 15-1
    b = 15-2
    c = 15-3

    When in the loop, i == a or b or c, make these changes <b>

    Would that be possible? If yes where should I write it ?

  4. TobiasBg
    Plugin Author

    Posted 5 years ago #


    I'm not really sure if that would help. You might try using the row class filter and add another CSS class to those rows. You could also use the cell content filter and check for the row number. That could also work. Integrating such a counter would not really help.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Table Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic