• Resolved petka7

    (@petka7)


    Tried everything that I found on google and still can’t get alignment to work in my tables. I want all my text in the table to be centered. CSS I have written doesn’t seem to work (fonts, colors all work) maybe I am missing something:

    .tablepress thead th,
    .tablepress tfoot th {
    background-color: #97B58D;
    text-align: center !important;
    }

    .tablepress tbody td,
    th {
    font-family: Georgia;
    font-size: 16px;
    color: black;
    text-align: center !important;
    }

    Text is always for some reason aligned to the left and I am using ColibriWp

    • This topic was modified 3 years, 3 months ago by petka7.

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Please try again with

    .tablepress thead th,
    .tablepress tfoot th {
      background-color: #97B58D;
    }
    
    .tablepress tbody td,
    .tablepress tbody th {
      font-family: Georgia;
      font-size: 16px;
      color: black;
      text-align: center !important;
    }

    (Note the extra .tablepress tbody.)

    In addition, as of now, the CSS is not yet part of the final page. The reason likely is that the Hummingbird plugin that you are using is not picking up changes to the TablePress CSS files. Please try manually flushing the Hummingbird file cache (there’s probably a button for that somewhere in its settings).

    Regards,
    Tobias

    Thread Starter petka7

    (@petka7)

    Hi,

    Thank you for your reply. Flushing Hummingbird file cache for sure helped and everything looks as it should be. Wouldnt have thought that clearing cache will fix everything. Thank you.

    Regards,

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text alignment not working’ is closed to new replies.