WordPress.org

Support

Support » How-To and Troubleshooting » Background of Table Color

Background of Table Color

  • Hi, I can’t figure out how to add color to the background of a table. The code I have for the table is the following. Where do I insert the “background color” language with the HEX number:

     
    <table id=”home-bottom” width=”100%” border=”0″ cellspacing=”10″ cellpadding=”10″>
    <tbody>
    <tr>
    <td class=”third” valign=”top” width=”30%”>
    <h1 style=”text-align: center;”><span style=”color: #000000;”>About Me</span></h1>
    <p style=”text-align: justify;”>Hi There!</p>
    </td>

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • <table id=”home-bottom” width=”100%” border=”0″ cellspacing=”10″ cellpadding=”10″>

    in this line before >

    Thanks, but I don’t think it worked: Should it read like this?
     
    <table id=”home-bottom” width=”100%” border=”0″ cellspacing=”10″ cellpadding=”10″ background-color:#B2DFEE”>
    <tbody>
    <tr>
    <td class=”third” valign=”top” width=”30%”>
    <h1 style=”text-align: center;”><span style=”color: #000000;”>About Me</span></h1>
    <p style=”text-align: justify;”>Hi!”
    </td>

    Sorry for my code ignorance.

    Try this

    <table style=”background-color: #B2DFEE; width: 100%;”
    id=”home-bottom” border=”0″ cellpadding=”10″
    cellspacing=”10″>
    <tbody>
    <tr>
    <td class=”third”
    style=”width: 30%; vertical-align: top;”>
    <h1 style=”text-align: center;”><span
    style=”color: rgb(0, 0, 0);”>About Me</span></h1>
    <p style=”text-align: justify;”>Hi!”
    </p>
    </td>
    </tr>
    </tbody>
    </table>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Background of Table Color’ is closed to new replies.
Skip to toolbar