Forum Moderators: open

Message Too Old, No Replies

help with table's border plzz?

         

fukchai2000

9:23 pm on Jan 30, 2005 (gmt 0)

10+ Year Member



hi...

i have this piece of code...

<table style="border-color:red"></table>

i will create a red line around the table....how about if i want to create a red line inside the table....(i mean all the table line is red color)..
can somebody give me some advises?

robobat

10:20 pm on Jan 30, 2005 (gmt 0)

10+ Year Member



Hi, not sure what you mean, but to make a red line in the table...you gotta make a cell in the table, by spliting the cell...then change color of the cell into red.

Daffydd

10:54 pm on Jan 30, 2005 (gmt 0)

10+ Year Member



Hi,

You would need to apply that style to the <td> as well.

The easiest way to do this would be to create a class... I'm assuming that you are not using an external style sheet so I'll set it up within the document.

Within your <head></head> add this:
----------------------------------
<style type="text/css">
table.redborder, table.redborder td {
border: 1px solid #ff0000;
}
</style>
-------------

Now for each table that you want the red border applied to add the class "redborder" to the table tag like this:
--------
<table class="redborder" cellpadding="0" cellspacing="0">
<tr>
<td>This cell has a red border now.</td>
</tr>

<tr>
<td>This cell has a red border now.</td>
</tr>
</table>

Daf