Click to See Complete Forum and Search --> : Boarder inside a Cell


ladynimue
12-25-2002, 12:18 PM
Hi everyone, this is my first time posting. I am creating a web site that calls for a “boarder inside a cell” with "no" boarder around the Table (just in one cell).

It's been a long time since I worked with html and I am the first to admit that I am a wee-bit rusty.

Any help you can give would be greatly appreciated.

MikeOS
12-25-2002, 01:23 PM
I suppose the eaisest way would be to use a style sheet. Here's a sample table:

<table>
<tr>
<td>content</td>
<td>content</td>
</tr>
<tr>
<td>content</td>
<td>content</td>
</tr>
<tr>
<td>content</td>
<td class="aborder">content</td>
</tr>
<tr>
<td>content</td>
<td>content</td>
</tr>
</table>

Then put this style sheet in the head section of your document. In this example I put the border around the last cell in the third row, but obviously you can move it where you want.

<style type="text/css">
.aborder {border: solid black 1px;}
</style>

So this will place a 1 pixel black solid border around the cell that uses the aborder class.

ladynimue
12-25-2002, 03:02 PM
Thanks so much for the excellent advice. Works perfectly! You made my Christmas Day!

Hope your holiday is filled with Magical Moments!

ladynimue