|
Posted by dorayme on 11/07/05 00:50
> From: "Jonathan N. Little" <lws4art@centralva.net>
>
> miguelco01blue@gmail.com wrote:
>> here is the code:
>>
>> <table width="266" height="263" border="1" cellpadding="1"
>> cellspacing="0" bordercolor="#FF0066">
>> <tr>
>> <th colspan="8" scope="col"> </th>
>> </tr>
>> <tr>
>> <th colspan="4" scope="row"> </th>
>> <td colspan="4"> </td>
>> </tr>
>> <tr>
>> <th colspan="8" scope="row"> </th>
>> </tr>
>> </table>
>>
> That's because there really isn't an attribute 'bordercolor' for the
> table element:
>
> Tables in HTML documents
> http://www.w3.org/TR/html4/struct/tables.html#edef-TABLE
>
> Try styling it with CSS, For just the TABLE element
>
> TABLE { border: 1px solid #FF0066 }
>
> If you want the cell borders the same then:
>
> TABLE, TH, TD { border: 1px solid #FF0066 }
>
> Yes, you can have a different border surrounding the table than its
> internal cells:
>
> TABLE { border: 3px outset blue; }
> TH, TD { border: 3px solid red; }
>
Strikes me that maybe another way to go for the OP is to have no
border at all on the table itself, just td borders, something I
do myself quite often. With or without cell spacing (done either
css or cellspacing ="#" in the <table...>. The OP can adapt your
good sounding advice to the td if he wants?
--
dorayme
Navigation:
[Reply to this message]
|