• Resolved jtj3

    (@jtj3)


    I’ve done some searching in the doc and in the help forum, but I haven’t found anything that helps. I incorporated a table into a blog post I wrote (https://travelstoriesandimages.com/tarangire-national-park/). I wanted to show the table description, but also have it centered above the table. I selected the option “show table description above the table”, and the text shows up…but it’s left justified.

    I found a thread that recommended putting the following code in the frontend CSS options:

    
    .tablepress thead th,
    .tablepress tbody td {
    	text-align: center;
    	vertical-align: middle;
    }
    
    .tablepress tbody td img {
    	float: none;
    }

    I added this by going into TablePress –> Plugin Options and added it under Custom CSS. However, this didn’t make any difference.

    How can I center the text like I want?

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.

    The CSS that you found there only applies to the table cell, not the description.

    To center the description, please try

    .tablepress-table-description {
        text-align: center;    
    }

    Regards,
    Tobias

    Thread Starter jtj3

    (@jtj3)

    Hi Tobias – thank you for the very quick reply. I tried the CSS you gave me above, and it worked. I appreciate it!!!

    Plugin Author Tobias B?thge

    (@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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Formatting table description?’ is closed to new replies.