• Resolved torbent

    (@torbentschechnegmailcom)


    Hello,
    I have a table with two columns and certain rows. Some rows are using colspan=”2″ for subheadlines. Is it possible to add another class to <td colspan=”2″> cells, so that I can target those with my CSS?

    Is there any hook for that?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    You shouldn’t need an extra CSS class, but you can use an “attribute selector” in your CSS code, like

    .tablepress-id-123 [colspan="2"] {
      color: #ff0000;
    }

    Regards,
    Tobias

    Thread Starter torbent

    (@torbentschechnegmailcom)

    Thanks for your quick reply Tobias. I googled it yesterday but every result I found was “no you can not use the attribute selector on this one.”

    It works ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I wouldn’t know why this shouldn’t work, it’s an attribute like every other one. ??
    Good to hear that it’s working!

    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 ‘Styling of colspan=”2″ table cells?’ is closed to new replies.