Border Colors

  • 19 years ago

    I have a table, and I would like some of the table to be a border.


    This means it needs to be a different color and I would like to apply the color using a stylesheet.
    Here is the table:


    <table>
     <tr>
       <td width="3"></td>
       <td width="100">Contents Here</td>
       <td width="3"></td>
     </tr>
    </table>


    I want the color to apply to the cells that are only 3 pixels wide.


    Thanks for your help,
    ap

  • 19 years ago

    Code:

    td.democlass
    {
       border-color: #7f9db9;
       border-width: 1px;
       border-style: solid;
       border-left-color: #FF0000;
       background-color: #f5f5f5;
    }

    and so on...., and then
    Code:

    <table>
    <tr>
      <td width="3" class="democlass"></td>
      <td width="100">Contents Here</td>
      <td width="3" class="democlass"></td>
    </tr>
    </table>

  • 19 years ago

    Thank you so much, it works great!


    ap

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone” - Bjarne Stroustrup