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.

    I’m not really sure what you mean. You want to change the background color of a random row, so that whenever the page is reloaded, a different row has a changed background color?
    Unfortunately, that is not possible with CSS 🙁 As a workaround, you could choose a random row with some custom JavaScript code maybe, that adds a CSS class to a random row, and then use that class in the CSS code.

    Regards,
    Tobias

    Thread Starter jbcuisinier

    (@jbcuisinier)

    Excuse my bad explanation. I would like just to apply a background color in one row in a table, but not in every row of same place in any table.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ok, then the code from the question “How can I change the background color of a single row?” in the TablePress FAQ at http://tablepress.org/faq/ should be what you need:
    With

    .tablepress-id-4 .row-5 td {
    	background-color: #ff0000;
    }

    you would change the background color of the sixth row of table 4 only.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘row background’ is closed to new replies.