WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Nikolas
    Member
    Posted 3 years ago #

    Hello,

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

    Thank you!

  2. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    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,
    Tobias

  3. Nikolas
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    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.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic