I want to put a border around only one cell--possible?

liunx

Guest
I am making a table and I don't want a border around the whole thing, just one cell. If I insert the border attribute into the td section, nothing happens. Is it just not possible to do this or am I doing something wrong?<br />
<br />
Here is what I have done:<br />
<br />
<table width="809" cellpadding="0" cellspacing="0" mm:layoutgroup="true"><br />
<tr> <br />
<td width="176" height="54"></td><br />
<td width="633"></td><br />
</tr><br />
<tr><br />
<td height="541"></td><br />
<td valign="top" border="5"></td><br />
</tr><br />
</table><br />
<br />
Thanks for any suggestions!<br />
Angela<!--content-->There are two possibilities. The old standard way is to make the cell that you want to have a border into its own table:<br />
<table><br />
<tr><br />
...<br />
<td><table border="1"><tr><td>Hi There</td></tr></table></td><br />
</tr><br />
</table><br />
<br />
The other way is to use styles:<br />
<table><br />
<tr><br />
<td style="border: thin green"></td><br />
</tr><br />
</table><br />
or<br />
<style><br />
.thickRed { border-width: 10px;<br />
border-color: red }<br />
</style><br />
<table><br />
<tr><br />
<td class="thickRed"></td><br />
</tr><br />
</table><br />
<br />
Styles - especially in-line Styles - aren't guaranteed to work in Netscape. (But then again, what is? :) )<!--content-->not only does NS not like most css, it doesn't agree with borders in cells, unless it is a table.<!--content-->
 
Back
Top