Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2003
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    css table borders

    Hi,

    I am trying to sort out three cells in a table to have borders, as I have on

    http://www.unique-and-perfect-gift.com/test/aboutus.htm These are the cells in the centre of the page. THen problem is they are images, and I want to create a table with same colour borders...but when I try I get ...see below

    http://www.unique-and-perfect-gift.c...t/aboutus1.htm any help would be greatly appreciated...

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,798
    Thanks
    8
    Thanked 131 Times in 129 Posts
    add some content to your tds.

    maybe something like:

    Code:
    .td1 { border-right: 3px double #990000; width: 160px; vertical-align: top;}
    .td2 { width: 160px; vertical-align: top;}
    .td3 { border-left: 3px double #990000; width: 160px; vertical-align: top;}
    .td1 p, .td2 p, .td3 p {
    margin: 0;
    padding: 6px;
    }
    Code:
    	   <table class="borders" width="487" height="300" cellpadding="0" cellspacing="0">
             <tr>
               <td class="td1"><p>a</p></td>
               <td class="td2"><p>b</p></td>
               <td class="td3"><p>c</p></td>
             </tr>
           </table>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •