Support » Plugin: TablePress » Cell background colour

  • Resolved andynz


    I know how to set the background of a cell by specifying the row and column in the CSS options. However, I want to set it in a way which is independent of the row number.

    I have tried CSS options:
    .tablepress .xx-tab-subhead {background-color: #e6f2ff;}

    With cell contents:
    <span class=”xx-tab-subhead”>text</span>
    the background only applies to the text itself

    With cell contents:
    <div class=”xx-tab-subhead”>text</div>
    the background applies to most of the cell, but not the padding inside each edge.

    Is there a way of changing the background of the entire cell in this way?


Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg


    Hi Andy,

    thanks for your post, and sorry for the trouble.

    No, sorry, that’s not possible, unfortunately. You’d have to remove the padding of the cells for this, and maybe add them to the .xx-tab-subhead again then.


Viewing 1 replies (of 1 total)
  • The topic ‘Cell background colour’ is closed to new replies.