• Resolved ata98

    (@ata98)


    Hi, i am having issue with text alignment. According to this table:table1

    how can i align header for example “bilgiler” to center and
    align left for rows under “bilgiler” column

    So far my css styling is

    .tablepress {
    	--head-text-color: #ffffff;
    	--head-text-align: center;
    	--head-bg-color: #000000;
    	--hoves-bg-color: #f2f2f2;
    }
    
    .tablepress .column-3 {
    	text-align: left;
    }

    but i couldn’t do it. Could you provide me a solution?

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    When I view your link, the table does exactly what you describe. That column is aligned on the left.

    It’s possible that this was just a caching issue, so please check again.

    Regards,
    Tobias

    Thread Starter ata98

    (@ata98)

    Dear Sir,

    So I would like to ask a one more question. I want to paint my background only for 7th and 11st row.

    my table id is 3

    So far my code is

    .tablepress-id-3 .tablepress tr:nth-child(7),
    .tablepress-id-3 .tablepress tr:nth-child(11) {
        background-color: black;
        color: white;
    }
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    you will need to assign the color to the td element, not the tr element. Please see https://tablepress.org/faq/change-background-color-of-a-row/

    Regards,
    Tobias

    Thread Starter ata98

    (@ata98)

    Thank you so much

    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 5 replies - 1 through 5 (of 5 total)

The topic ‘Table header and row alignment issue’ is closed to new replies.