• Resolved planeo8

    (@planeo8)


    I would like the table header contents to be bold and centered and black…and the same font size as in the body (in this case 14 px)

    But…I would like the text in the body to be left justified

    I am using the following CCS for the body to increase the size to 14 px

    .tablepress-id-7 tbody td {
    font-family: Tahoma;
    font-size: 14px;
    color: #000000;
    }

    How do I get both the header and the body to display as I want.

    This is a great plugin…and I appreciate the support everyone provides.

    Thanks.

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    To change the header like that, please try

    .tablepress-id-7 thead th {
      font-family: Tahoma;
      font-size: 14px;
      color: #000000;
      text-align: center;
      font-weight: bold;
    }
    

    Regards,
    Tobias

    Thread Starter planeo8

    (@planeo8)

    Thanks for the quick response.

    The code provided appears to do what I requested for the header.

    BUT…how do I combine it with the code I previously noted in my question.

    I don’t understand how to do both.

    Would the combination look like what is below or is there a better way?

    .tablepress-id-7 thead th {
    font-family: Tahoma;
    font-size: 14px;
    color: #000000;
    text-align: center;
    font-weight: bold;
    }
    .tablepress-id-7 tbody td {
    font-family: Tahoma;
    font-size: 14px;
    color: #000000;
    }

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, just put them underneath each other, that would be the simples way.

    You could merge them a little bit, but that doesn’t simplify much:

    .tablepress-id-7 tbody td,
    .tablepress-id-7 thead th {
      font-family: Tahoma;
      font-size: 14px;
      color: #000000;
    }
    .tablepress-id-7 thead th {
      text-align: center;
      font-weight: bold;
    }

    Regards,
    Tobias

    Thread Starter planeo8

    (@planeo8)

    Thank you…that works perfectly.

    Great support!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘TABLE HEADER’ is closed to new replies.