• Resolved satheeshrajv

    (@satheeshrajv)


    Hi,
    I want to do colspan for specific row(this achieved) and align the text in that specific row to centre and at the same time I want to add ackground color to that row alone like in table header. Please help me to achive this.

    Regards,
    Satheeshraj V

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter satheeshrajv

    (@satheeshrajv)

    I’m having many tables like this and colspan row number will be vary for each table so the css needs to be global(not for specific table). One comman thing is all the table will have only 2 columns.

    I tried the below css:
    td[colspan=”2″] {
    text-align: center;
    font-weight: bold;
    background-color: #d9edf7;
    }

    background-color is not changing with this. So I kindly request you to help me on this.

    Regards,
    Satheesh

    • This reply was modified 4 years, 7 months ago by satheeshrajv.
    Thread Starter satheeshrajv

    (@satheeshrajv)

    I have achieved with the below css. Please correct me if I’m wrong.

    .tablepress tbody tr td[colspan=”2″] {
    text-align: center;
    font-weight: bold;
    background-color: #d9edf7;
    }

    Regards,
    Satheeshraj

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Indeed, this is the best approach for this. Good to hear that you already found it!

    Best wishes,
    Tobias

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

The topic ‘Colspan text align’ is closed to new replies.