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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table inner borders

Status
Not open for further replies.

bardley

Programmer
May 8, 2001
121
US
Hi. I have the following table, and I need the outer border but don't want the cells separated. This works wonderfully in IE, but NS still displays the inner rules. Is there something I can do to get rid of them?
Code:
<table width=100% height=100% border=2 frame=box rules=none>
  <tr height=50%>
    <td width=50% valign=center align=center>
      Some Data
    <td width=50% valign=center align=center>
      More Data
  <tr height=50%>
    <td valign=center align=center>
      Yet More Data
    <td valign=center align=center>
      <br>
</table>
Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com
 
My first thought was CSS but the border-style:none I don't beleive is supported in NN DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Here's something that sort of works, although you will have to play around with the spacing a bit.

I created an outer table with a border=2.

The inner table has no border.

Netscape doesn't like <td height=&quot;50%&quot;> so I tried using <td height=&quot;200px&quot;>, etc., but the spacing just never looked the same in Netscape and IE.


So Instead I used the extra <tr> and the <pre></pre> to space the cells.

<html><head><title></title></head><body>
<table width=100% height=100% border=2 frame=box rules=none>
<tr>
<td>
<table width=100% height=100% border=0 frame=box rules=none>
<tr>
<td valign=center align=center>
Some Data</td>
<td valign=center align=center>
More Data</td>
<tr><td><pre>





</pre></td>
<tr>
<td valign=center align=center>
Yet More Data</td>
<td valign=center align=center>
<br>
</table>
</td>
</tr>
</table>
</body></html>


I hope this will work for you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top