473,395 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
8 12078
"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
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
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
"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
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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rolf Brauser | last post by:
Hello, is it possible to draw a one pixel line around every cell in a table? with "border: 1px solid; " just the outer tableborder ist concerned ? thanks for any help rolf
7
by: Bob Bedford | last post by:
I've an image in a cell of a table. I've this CSS: ..dbtable{ width: 600px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; border-collapse: collapse; border: 1px solid #000000;
3
by: N. Demos | last post by:
I have a single row table with fixed dimensioned cells nested inside a fixed dimensioned div, which has overflow: hidden. The div's dimensions are such that It should only display the first two...
1
by: sam | last post by:
Hi, I want to use style on the grids of table. Currently it use default style of the html table, in which the grid size appeared very thick. How can I change the "thick" style of the default...
11
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables...
7
by: Shawn B. | last post by:
Greetings, I am trying to create a table that has a scrolling body. The problem I'm experiencing is that if the columns in the "body" part of the table exceed the width of the "header" then...
4
by: Martin Eyles | last post by:
Hi! I am trying to make several 1x3 tables on a webpage, where all three cells have black backgrounds and white text. However, I want the space around each of the cells, and the whole box to be...
10
by: phil-news-nospam | last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing _between_ the columns (gutter) _without_ increasing the spacing between those columns and the table itself. Is there a way...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.