Support » Fixing WordPress » Change column alignment in Table Block does not change alignment

  • Resolved MX

    (@toweringskills)


    What am I doing wrong? I want to right align a column of numbers in a table created by adding a table block. But the values in the column remained left aligned. I have TablePress installed, but I am not using it on this page. I have checked CSS throughout site to ensure there is nothing interfering.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    Please paste the following CSS in Appearance -> Customize ->Additional CSS

    td.has-text-align-right {
        text-align: right !important;
    }
    
    th.has-text-align-right {
        text-align: right !important;
    }

    I hope it will fix your issue.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @toweringskills Please do not create duplicate topics. I have archived your other one.

    Thread Starter MX

    (@toweringskills)

    Prashant,
    Wow! Just like magic. Columns and header align perfectly.
    Thank you.

    If WordPress provides table column alignment as normal selection, why was this CSS code missing from standard WP code?

    Jan,
    Thanks for deleting duplicate post. I was afraid I lost internet connect and first submission did not go through.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change column alignment in Table Block does not change alignment’ is closed to new replies.