• Resolved FGUTheDoctor

    (@fguthedoctor)


    As a newbie, I need your help!
    What am I doing wrong?

    I would like to have text aligned centered in columns and in the middle of rows (where applicable). Yet I am not able to do this. So, in a word: help!

    See: http://www.gosocialmedia.xyz/?page_id=15

    Custom CSS:

    .tablepress .odd td {
    background-color: #003366;
    }

    .tablepress .even td {
    background-color: #003366;
    opacity: .6;
    }

    .tablepress .row-hover tr:hover td {
    background-color: #ffffff;
    color: #003366;
    }

    .tablepress {
    width: auto;
    margin: auto 5em;
    font-family: Tahoma;
    font-size: 16px;
    color: #ffffff;
    border-style: solid;
    border-width: medium;
    border-color: blue;
    border-style: outset;
    text-transform: capitalize;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    }

    Dedug Info:

    · Website: http://www.gosocialmedia.xyz
    · TablePress: 1.7
    · TablePress (DB): 32
    · TablePress table scheme: 3
    · Plugin installed: 2016/04/21 12:29:12
    · WordPress: 4.5
    · Multisite: no
    · PHP: 5.4.43
    · mysqli Extension: false
    · mySQL (Server): 5.5.42-37.1-log
    · mySQL (Client): 5.5.42-37.1
    · ZIP support: yes
    · UTF-8 conversion: yes
    · WP Memory Limit: 40M
    · Server Memory Limit: 256M
    · Magic Quotes: off
    · WP_DEBUG: false
    · WP_POST_REVISIONS: true

    https://wordpress.org/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, please try adding this “Custom CSS”:

    .tablepress-id-123 thead th,
    .tablepress-id-123 tbody td {
      text-align: center;
      vertical-align: middle;
    }

    where 123 needs to be changed to the desired table ID.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Center Text’ is closed to new replies.