WordPress.org

Ready to get started?Download WordPress

Forums

background color in wp-Table (2 posts)

  1. nycvelo
    Member
    Posted 5 years 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 5 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic