• Resolved SFGolfer

    (@sfgolfer)


    I’m using this css to change the font of a certain column:

    .tablepress-id-2 .column-4 {
    color: red;
    font-weight: bold;
    }

    However, the side effect is that it also changes the heading color of column 4. I would like to set the heading of column 4 to be white font.

    Is this possible?

    http://wordpress.org/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    To make this apply only to the body cells, and not the header row, just extend the code to

    .tablepress-id-2 tbody .column-4 {
      color: red;
      font-weight: bold;
    }

    Regards,
    Tobias

    Thread Starter SFGolfer

    (@sfgolfer)

    That didn’t work but you put me in the right direction.

    This worked for me.

    .tablepress-id-2 thead tr th.column-4 {
      color: #ffff00;
      font-weight: bold;
    }
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, yes, my code does not change the header row color to white, but yours does. Nice find! 🙂

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change font color for a certain row heading’ is closed to new replies.