Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table border

Status
Not open for further replies.

calista

Programmer
Jan 24, 2001
545
US
Just a quick question. Is there a way to put a border around an entire table without bordering each cell? I just want the entire table outlined. Thanks! :)
 
Either use style sheets to set the border-left, border-right,border-top,and border-bottom props or enclose in another table with a border

i.e.

<table border=1>
<tr>
<td><your table goes here></td>
</tr>
</table>
 
Thanks! That worked! Just for everyone's FYI, I checked the documentation, (When all else fails, read the directions, right?) and it mentions a FRAME attribute you can use in conjuntion with the BORDER attribute. You would code FRAME=&quot;BOX&quot; in the main TABLE tag to get what I was asking for. However, only EXPLORER supports this attribute. I tried it, and it didn't work. (I have IE 5.0) I wouldn't want to do anything only one browser supported, anyway.

I really do need to look into style sheets.

Thanks again!
 
Calista,

Youcan also position a table w/ border size &quot;0&quot; inside of a table with border size 1. as follows. This will give you the effect you are looking for. I hope this helps.

<div align=&quot;left&quot;>
<table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bordercolor=&quot;#FF0000&quot;>
<tr>
<td>
<div align=&quot;left&quot;>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td>Your data here</td>
<td>your data here</td>
</tr>
<tr>
<td>your data here</td>
<td>your data here</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>


jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top