473,883 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 12108
"UJ" <fr**@nowhere.c om>'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****@discuss ions.microsoft. com> wrote in message
news:D2******** *************** ***********@mic rosoft.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.c om>'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****@discuss ions.microsoft. com> wrote in message
news:D2******* *************** ************@mi crosoft.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.c om...
"UJ" <fr**@nowhere.c om>'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****@discuss ions.microsoft. com> wrote in message
news:D2****** *************** *************@m icrosoft.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.c om>'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.c om>'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****@discuss ions.microsoft. com> wrote in message
news:D2***** *************** **************@ microsoft.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**********@c omcast.net> wrote in message
news:uW******** ******@TK2MSFTN GP03.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
3325
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
41745
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
5919
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 table cells. This all renders correctly in MSIE 6.x, but doesn't in Firefox. In Firefox, the cell widths are reduced so that all the cells are displayed within the div frame. I've played around with this: commenting out css properties to see if...
1
2601
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 table to "slim"? Thanks Sam
11
3589
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 but not in height calculations. Oh, and Opera version 8.02 does the same thing. |<-->| |<-->| <------ border |<------------>| <------ table contents
7
2641
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 they columns lose their alignment. Can anyone help me correct this?
4
1737
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 coloured (see http://www.bytronic.com/martinTest/table.gif). I will be programatically changing the colour of this border on the client side, based on data from an embeded asp.net page. Is there a way I can set the html/css up so that I can do...
10
11078
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 to do that in CSS without having to code in extra dummy columns in HTML to create gutters? -- ----------------------------------------------------------------------------- | Phil Howard KA9WGN | http://linuxhomepage.com/ ...
117
18631
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 elements in the HTML to get everything just right. When you consider the class attribute on the DIV elements, there's not much size savings anymore for using DIV. There are other disadvantages to not using TABLE/TR/TD, such as the lack of ability...
0
9778
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10405
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5784
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4602
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3228
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.