Boarder inside a Cell

liunx

Guest
Hi everyone, this is my first time posting. I am creating a web site that calls for a 鎻祇arder inside a cell?with "no" boarder around the Table (just in one cell). <br />
<br />
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. <br />
<br />
Any help you can give would be greatly appreciated.<!--content-->I suppose the eaisest way would be to use a style sheet. Here's a sample table:<br />
<br />
<table><br />
<tr><br />
<td>content</td><br />
<td>content</td><br />
</tr><br />
<tr><br />
<td>content</td><br />
<td>content</td><br />
</tr><br />
<tr><br />
<td>content</td><br />
<td class="aborder">content</td><br />
</tr><br />
<tr><br />
<td>content</td><br />
<td>content</td><br />
</tr><br />
</table><br />
<br />
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.<br />
<br />
<style type="text/css"><br />
.aborder {border: solid black 1px;}<br />
</style><br />
<br />
So this will place a 1 pixel black solid border around the cell that uses the aborder class.<!--content-->Thanks so much for the excellent advice. Works perfectly! You made my Christmas Day! <br />
<br />
Hope your holiday is filled with Magical Moments!<br />
<br />
ladynimue<!--content-->
 
Back
Top