Showing posts with label cells. Show all posts
Showing posts with label cells. Show all posts

Saturday, March 31, 2012

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

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."UJ" <fred@.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.
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.
>
But doesn't that put a border around everything including the cells? I need
just a border around the outside of the table.

"Jeremy" <Jeremy@.discussions.microsoft.com> wrote in message
news:D2B4AD7F-6FE3-456F-BF01-AC215EF764B2@.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.
>>
>>
>
"UJ" <fred@.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" <Jeremy@.discussions.microsoft.com> wrote in message
>news:D2B4AD7F-6FE3-456F-BF01-AC215EF764B2@.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)
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" <StellaDrinker@.REMOVE.ME.uboot.com> wrote in message
news:jjdi821qndfr94ie161fm83mefg2d96a9u@.4ax.com...
> "UJ" <fred@.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" <Jeremy@.discussions.microsoft.com> wrote in message
>>news:D2B4AD7F-6FE3-456F-BF01-AC215EF764B2@.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)
Try this...it gives you just the outer border.

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

*** Sent via Developersdex http://www.developersdex.com ***
"UJ" <fred@.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" <StellaDrinker@.REMOVE.ME.uboot.com> wrote in message
>news:jjdi821qndfr94ie161fm83mefg2d96a9u@.4ax.com...
>> "UJ" <fred@.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" <Jeremy@.discussions.microsoft.com> wrote in message
>>>news:D2B4AD7F-6FE3-456F-BF01-AC215EF764B2@.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)
That works perfectly!

Thanks!

"K B" <kathyburke40@.comcast.net> wrote in message
news:uWzbCnEjGHA.3800@.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 ***

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

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."UJ" <fred@.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.
Try this...it gives you just the outer border.
<table BORDER=1 RULES=NONE FRAME=BOX>
kit
*** Sent via Developersdex http://www.examnotes.net ***
That works perfectly!
Thanks!
"K B" <kathyburke40@.comcast.net> wrote in message
news:uWzbCnEjGHA.3800@.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.examnotes.net ***

Monday, March 26, 2012

Tables arent sized correctly in VS2005

Im using visual studio to make my website, but im having problems with tables every time.

I use the mnouse to resize the tables cells, but every time they are shown totally wrong! If i place a table with to columns and a width of 800px and then set the left coulm to be 50 px then the shown lengt is a third of the table of that column. Also in the preview.

I havent seen this problem in dreamweaver, so i dont know if this is a setting or something that i have to set..

what does the STYLE property look like on the <table> tag?

Are any CSS classes being inherited?


Well it seems like that if i drag a cell in a table, only the width of this cell is being set and not the one in the next cell. Which means that when i get these strange sizes, then the table have the width 800px, but the first column have a width of 50px and the next have the width 150 (just and example). If i then type the proper lenghts in to the style field, then i can make it display properly.

Is this a bug in VS perhaps (a rather big bug i would say)

I would like the drag the sizes around, so that it is easier to see


not sure I follow... but remember that CSS goes down to the lowest level. If you have two colums and you set cell1 to 50 and cell2 to 50 then you get 100... if you want the table to 800 and only cell1 to 50 then make sure that cell2 has NO WIDTH SET...

I've found that NO designer is great for HTML. You are almost always better off doing it yourself from the html view.