• Resolved fxdaivid

    (@fxdaivid)


    hi TobiasBg,

    I have a problem with changing the font size of the table header.

    I can change the font, color etc of the first row of the table when it’s not the header. I mean when I uncheck the box next to “The first row of the table is the table header” on the table options.

    I normally use this to change the first row:

    .tablepress-id-N .row-1 td {
    	color: #000000;
    	font-family: arial;
    	font-size: 15px;
    	font-weight: bold;
    }

    but in the mentioned situation where the first row is not the table header, the CSS code doesn’t work and doesn’t change anything.

    I checked for the answer but I couldn’t find any so I would appreciate it if you can help me.

    • This topic was modified 5 years, 2 months ago by fxdaivid.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For the table head row, the CSS selector needs to be a bit different (I should add that to the FAQ page, thanks! ?? ).

    Please try again with

    .tablepress thead th {
    	color: #000000;
    	font-family: arial;
    	font-size: 15px;
    	font-weight: bold;
    }

    (If you only want this for one table, you can use .tablepress-id-123 with the correct table ID instead of .tablepress.)

    Regards,
    Tobias

    Thread Starter fxdaivid

    (@fxdaivid)

    solved, thank you so much. I also couldn’t align center the header but after your help, I used this similar code and everything looks better now.

    .tablepress thead th {
    	text-align: center;
    }

    cheers,

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    nice find, yes, that’s correct ??

    Best wishes,
    Tobias

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change the Font Size of Header’ is closed to new replies.