Forums

background color in wp-Table (2 posts)

  1. nycvelo
    Member
    Posted 8 months ago #

    How to assign a background color to a single cell in a table created using the wp-Table setup?

    The underlying code uses <td> tags, and it's easy enough to use the bgcolor attribute -- but only for all cells in a given row or column. My question is how to assign a background color for just one cell, just as I can use other html to make the font in that cell bold or italic.

    Many thanks.

  2. scribu
    Member
    Posted 8 months ago #

    Well, a quick and dirty approach would be to write <td style="background-color: #112233">

    By the way, don't use bgcolor anymore. It's deprecated.

Reply

You must log in to post.

About this Topic