View Full Version : css table borders

05-19-2005, 12:11 AM

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.com/test/aboutus1.htm any help would be greatly appreciated...

05-19-2005, 01:33 AM
add some content to your tds.

maybe something like:

.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;

<table class="borders" width="487" height="300" cellpadding="0" cellspacing="0">
<td class="td1"><p>a</p></td>
<td class="td2"><p>b</p></td>
<td class="td3"><p>c</p></td>