Web Hosting Talk







View Full Version : Table question


matt2kjones
11-27-2002, 06:50 PM
Ok, when using tables

is there a way to change the border colour???

im sick of it being gray, and would like to change the colour

Thanx

vivacity
11-27-2002, 07:06 PM
hey..

Please go to: http://www.ajrob.co.uk/hoa/tables.htm

-j

btw, if you still need help just email me.

MarkIL
11-27-2002, 07:48 PM
That page describes the wrong way of changing the border color; you should be using CSS.


<table style="border:1px solid #DADADA;" cellspacing="0" cellpadding="0">
<tr>
<td>This is a cell</td>
<td style="border-left:2px dashed #006699;">This is another cell.</td>
</tr>
<tr>
<td style="border-right:2px dashed #006699;">More cells...</td>
<td>...</td>
</tr>
</table>


For more information, click here (http://www.w3.org/TR/REC-CSS2/tables.html).

Bulldog
11-27-2002, 08:31 PM
<table border="1" bordercolor="whatever">
<tr>
<td>Content</td>
</tr>
</table>

Or, if you want a true 1px border

<table bgcolor="#000000" cellpadding="1" cellspacing="0" width="100%" align="center">
<tr>
<td>
<table bgcolor="#c0c0c0" width="100%" cellspacing="4">
<tr>
<td>
Content
</td>
</tr>
</table>
</td>
</tr>
</table>