By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,876 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,876 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Jun 8 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
"UJ" <fr**@nowhere.com>'s wild thoughts were released on
Thu, 8 Jun 2006 10:49:39 -0400 bearing the following fruit:
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)

--
I don't have a solution but I admire the problem.

Jun 8 '06 #2

P: n/a
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

"UJ" wrote:
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.

Jun 8 '06 #3

P: n/a
UJ
But doesn't that put a border around everything including the cells? I need
just a border around the outside of the table.

"Jeremy" <Je****@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com...
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

"UJ" wrote:
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.

Jun 8 '06 #4

P: n/a
"UJ" <fr**@nowhere.com>'s wild thoughts were released on
Thu, 8 Jun 2006 16:28:28 -0400 bearing the following fruit:
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
"Jeremy" <Je****@discussions.microsoft.com> wrote in message
news:D2**********************************@microso ft.com...
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

"UJ" wrote:
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.

Jan Hyde (VB MVP)

--
A friend of mine just had her 11th baby. Everyone says she's overbearing
(Megan Waves)

Jun 9 '06 #5

P: n/a
UJ
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.

"Jan Hyde" <St***********@REMOVE.ME.uboot.com> wrote in message
news:jj********************************@4ax.com...
"UJ" <fr**@nowhere.com>'s wild thoughts were released on
Thu, 8 Jun 2006 16:28:28 -0400 bearing the following fruit:
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
"Jeremy" <Je****@discussions.microsoft.com> wrote in message
news:D2**********************************@micros oft.com...
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

"UJ" wrote:

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.

Jan Hyde (VB MVP)

--
A friend of mine just had her 11th baby. Everyone says she's overbearing
(Megan Waves)

Jun 9 '06 #6

P: n/a
K B
Try this...it gives you just the outer border.

<table BORDER=1 RULES=NONE FRAME=BOX>

kit

*** Sent via Developersdex http://www.developersdex.com ***
Jun 10 '06 #7

P: n/a
"UJ" <fr**@nowhere.com>'s wild thoughts were released on
Fri, 9 Jun 2006 16:38:26 -0400 bearing the following fruit:
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" <St***********@REMOVE.ME.uboot.com> wrote in message
news:jj********************************@4ax.com.. .
"UJ" <fr**@nowhere.com>'s wild thoughts were released on
Thu, 8 Jun 2006 16:28:28 -0400 bearing the following fruit:
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
"Jeremy" <Je****@discussions.microsoft.com> wrote in message
news:D2**********************************@micro soft.com...
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

"UJ" wrote:

> 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.
>
>
>

Jan Hyde (VB MVP)

--
A friend of mine just had her 11th baby. Everyone says she's overbearing
(Megan Waves)

Jan Hyde (VB MVP)

--
Polarize: What penguins see with (Hershy)

Jun 12 '06 #8

P: n/a
UJ
That works perfectly!

Thanks!

"K B" <ka**********@comcast.net> wrote in message
news:uW**************@TK2MSFTNGP03.phx.gbl...
Try this...it gives you just the outer border.

<table BORDER=1 RULES=NONE FRAME=BOX>

kit

*** Sent via Developersdex http://www.developersdex.com ***

Jun 12 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.