WordPress.org

Forums

Background of Table Color (4 posts)

  1. magicman12345
    Member
    Posted 3 years ago #

    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!

  2. govpatel
    Member
    Posted 3 years ago #

    <table id="home-bottom" width="100%" border="0" cellspacing="10" cellpadding="10">

    in this line before >

  3. magicman12345
    Member
    Posted 3 years ago #

    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.

  4. govpatel
    Member
    Posted 3 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags