Table where I want to draw a border around the whole table but not between the cells.

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

I have a table with multiple cells and I want to draw a box around the
entire table but not around the individual cells. How do I do that?

TIA - Jeff.
 
I have a table with multiple cells and I want to draw a box around the
entire table but not around the individual cells. How do I do that?

TIA - Jeff.

IIRC just setting the borders on the table should do it.



Jan Hyde (VB MVP)
 
If you are asking about a .net table you can do:

Table table = new Table();
table.Style.Add("border-width","1px");
table.Style.Add("border-color","#000000");
table.Style.Add("border-style","solid");

Or just an html table:

<table border="0" style="border-width: 1px; border-color:#000000;
border-style: solid;">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>

And there is a ton of different borders you can use, just google css
border-style
 
But doesn't that put a border around everything including the cells? I need
just a border around the outside of the table.
 
But doesn't that put a border around everything including the cells? I need
just a border around the outside of the table.

Have you tried it?

J


Jan Hyde (VB MVP)
 
I just tried it and it shows the borders on the cells also. Remember - I
just need a border around the entire object - no each individual cell.

TIA.
 
I just tried it and it shows the borders on the cells also. Remember - I
just need a border around the entire object - no each individual cell.

I can't recraete your problem, my tables are set up in
exactly the way you want (my style sheet sets border-right,
border-top etc) and in IE6, Firefox and Opera I only get a
border round the whole table, cells are unaffected.

J

TIA.

Jan Hyde said:
Have you tried it?

J



Jan Hyde (VB MVP)


Jan Hyde (VB MVP)
 
Back
Top