473,378 Members | 1,380 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,378 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 12074
"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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.