What do I have to do to get a column in a table to stay the same size no
matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to
work; for example, the columns that are colored #cccccc I want to stay the
size of the menu control, which doesn't change.
However, if the column to the right of it, with the ucGeneral and ucDetails
controls, has nothing in it, or something very small, the #cccccc column
spreads out and I don't want it to do that. What's the secret.
<table runat=server bgcolor=white border=0 bordercolor=black height="100%"
width="100%" cellspacing=0 cellpadding=0 ID="Table1">
<tr height="10%" width="100%">
<td colspan=5><uc1:ucHeader id=UcHeader1
runat="server"></uc1:ucHeader></td>
</tr>
<tr valign=top>
<td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td>
<td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"><uc1:ucMenu
id=UcMenu1 runat="server"></uc1:ucMenu></td>
<td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td>
<td bgcolor="white" rowspan=3> </td>
</tr>
<tr valign=top width="100%"><td valign=top><uc1:ucGeneral id=UcGeneral1
runat="server"></uc1:ucPointOfDiversionGeneral></td></tr>
<tr valign=top height="100%" width="100%"><td valign=top><uc1:ucDetails
id=UcDetails1 runat="server"></uc1:ucDetails></td>
</tr>
</table>
Thanks. 5 1729
In the column you want to be fixed, add the "nowrap" option in the TD tag.
For the column to the right, set it's width to 100%.
You could also try putting the contents of the fixed cell in a table of it's
own with a fixed size and aligned either center, left, or right. If the
right
column changes, it won't change how the nested table looks to the user.
--
2005 Microsoft MVP C#
Robbe Morris http://www.robbemorris.com http://www.mastervb.net/home/ng/foru...t10017013.aspx http://www.eggheadcafe.com/articles/..._generator.asp
"Iams" <Iams@hotmail> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... What do I have to do to get a column in a table to stay the same size no matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to work; for example, the columns that are colored #cccccc I want to stay the size of the menu control, which doesn't change.
However, if the column to the right of it, with the ucGeneral and ucDetails controls, has nothing in it, or something very small, the #cccccc column spreads out and I don't want it to do that. What's the secret.
<table runat=server bgcolor=white border=0 bordercolor=black height="100%" width="100%" cellspacing=0 cellpadding=0 ID="Table1"> <tr height="10%" width="100%"> <td colspan=5><uc1:ucHeader id=UcHeader1 runat="server"></uc1:ucHeader></td> </tr> <tr valign=top> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"><uc1:ucMenu id=UcMenu1 runat="server"></uc1:ucMenu></td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="white" rowspan=3> </td> </tr> <tr valign=top width="100%"><td valign=top><uc1:ucGeneral id=UcGeneral1 runat="server"></uc1:ucPointOfDiversionGeneral></td></tr> <tr valign=top height="100%" width="100%"><td valign=top><uc1:ucDetails id=UcDetails1 runat="server"></uc1:ucDetails></td> </tr> </table>
Thanks.
In the column you want to be fixed, add the "nowrap" option in the TD tag.
For the column to the right, set it's width to 100%.
You could also try putting the contents of the fixed cell in a table of it's
own with a fixed size and aligned either center, left, or right. If the
right
column changes, it won't change how the nested table looks to the user.
--
2005 Microsoft MVP C#
Robbe Morris http://www.robbemorris.com http://www.mastervb.net/home/ng/foru...t10017013.aspx http://www.eggheadcafe.com/articles/..._generator.asp
"Iams" <Iams@hotmail> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... What do I have to do to get a column in a table to stay the same size no matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to work; for example, the columns that are colored #cccccc I want to stay the size of the menu control, which doesn't change.
However, if the column to the right of it, with the ucGeneral and ucDetails controls, has nothing in it, or something very small, the #cccccc column spreads out and I don't want it to do that. What's the secret.
<table runat=server bgcolor=white border=0 bordercolor=black height="100%" width="100%" cellspacing=0 cellpadding=0 ID="Table1"> <tr height="10%" width="100%"> <td colspan=5><uc1:ucHeader id=UcHeader1 runat="server"></uc1:ucHeader></td> </tr> <tr valign=top> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"><uc1:ucMenu id=UcMenu1 runat="server"></uc1:ucMenu></td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="white" rowspan=3> </td> </tr> <tr valign=top width="100%"><td valign=top><uc1:ucGeneral id=UcGeneral1 runat="server"></uc1:ucPointOfDiversionGeneral></td></tr> <tr valign=top height="100%" width="100%"><td valign=top><uc1:ucDetails id=UcDetails1 runat="server"></uc1:ucDetails></td> </tr> </table>
Thanks.
For the table set css rule table_layout:fixed; then specify the width for
the columns in the first row.
Eliyahu
"Iams" <Iams@hotmail> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... What do I have to do to get a column in a table to stay the same size no matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to work; for example, the columns that are colored #cccccc I want to stay the size of the menu control, which doesn't change.
However, if the column to the right of it, with the ucGeneral and
ucDetails controls, has nothing in it, or something very small, the #cccccc column spreads out and I don't want it to do that. What's the secret.
<table runat=server bgcolor=white border=0 bordercolor=black height="100%" width="100%" cellspacing=0 cellpadding=0 ID="Table1"> <tr height="10%" width="100%"> <td colspan=5><uc1:ucHeader id=UcHeader1 runat="server"></uc1:ucHeader></td> </tr> <tr valign=top> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"><uc1:ucMenu id=UcMenu1 runat="server"></uc1:ucMenu></td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="white" rowspan=3> </td> </tr> <tr valign=top width="100%"><td valign=top><uc1:ucGeneral id=UcGeneral1 runat="server"></uc1:ucPointOfDiversionGeneral></td></tr> <tr valign=top height="100%" width="100%"><td valign=top><uc1:ucDetails id=UcDetails1 runat="server"></uc1:ucDetails></td> </tr> </table>
Thanks.
For the table set css rule table_layout:fixed; then specify the width for
the columns in the first row.
Eliyahu
"Iams" <Iams@hotmail> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... What do I have to do to get a column in a table to stay the same size no matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to work; for example, the columns that are colored #cccccc I want to stay the size of the menu control, which doesn't change.
However, if the column to the right of it, with the ucGeneral and
ucDetails controls, has nothing in it, or something very small, the #cccccc column spreads out and I don't want it to do that. What's the secret.
<table runat=server bgcolor=white border=0 bordercolor=black height="100%" width="100%" cellspacing=0 cellpadding=0 ID="Table1"> <tr height="10%" width="100%"> <td colspan=5><uc1:ucHeader id=UcHeader1 runat="server"></uc1:ucHeader></td> </tr> <tr valign=top> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"><uc1:ucMenu id=UcMenu1 runat="server"></uc1:ucMenu></td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="white" rowspan=3> </td> </tr> <tr valign=top width="100%"><td valign=top><uc1:ucGeneral id=UcGeneral1 runat="server"></uc1:ucPointOfDiversionGeneral></td></tr> <tr valign=top height="100%" width="100%"><td valign=top><uc1:ucDetails id=UcDetails1 runat="server"></uc1:ucDetails></td> </tr> </table>
Thanks.
Great ideas! Thanks so much!
"Robbe Morris [C# MVP]" <in**@turnkeytools.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... In the column you want to be fixed, add the "nowrap" option in the TD tag. For the column to the right, set it's width to 100%.
You could also try putting the contents of the fixed cell in a table of
it's own with a fixed size and aligned either center, left, or right. If the right column changes, it won't change how the nested table looks to the user.
-- 2005 Microsoft MVP C# Robbe Morris http://www.robbemorris.com http://www.mastervb.net/home/ng/foru...t10017013.aspx http://www.eggheadcafe.com/articles/..._generator.asp "Iams" <Iams@hotmail> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... What do I have to do to get a column in a table to stay the same size no matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to work; for example, the columns that are colored #cccccc I want to stay
the size of the menu control, which doesn't change.
However, if the column to the right of it, with the ucGeneral and ucDetails controls, has nothing in it, or something very small, the #cccccc column spreads out and I don't want it to do that. What's the secret.
<table runat=server bgcolor=white border=0 bordercolor=black
height="100%" width="100%" cellspacing=0 cellpadding=0 ID="Table1"> <tr height="10%" width="100%"> <td colspan=5><uc1:ucHeader id=UcHeader1 runat="server"></uc1:ucHeader></td> </tr> <tr valign=top> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"><uc1:ucMenu id=UcMenu1 runat="server"></uc1:ucMenu></td> <td bgcolor="#cccccc" rowspan=3 style="WIDTH: 10px"> </td> <td bgcolor="white" rowspan=3> </td> </tr> <tr valign=top width="100%"><td valign=top><uc1:ucGeneral
id=UcGeneral1 runat="server"></uc1:ucPointOfDiversionGeneral></td></tr> <tr valign=top height="100%" width="100%"><td
valign=top><uc1:ucDetails id=UcDetails1 runat="server"></uc1:ucDetails></td> </tr> </table>
Thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: PR |
last post by:
Hi,
I have a basic question on schema changes performed on populated tables.
Should I prepare for big roll back area and so on for both of these changes:
ALTER TABLE ADD COLUMN
ALTER TABLE ALTER...
|
by: Mariusz Jedrzejewski |
last post by:
Hi,
I'll be very grateful if somebody can explain me why my Opera 7.23
(runing under linux) doesn't show me inner tables. Using below code I
can see only "inner table 1". There is no problem with...
|
by: Jeff Schmidt |
last post by:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
~ Ok, I've got some tables, and a style sheet that contains stuff to
format the table. The problem I'm having is, it appears that using...
|
by: Robert J. O'Hara |
last post by:
For some time I've made use of the max-width property in CSS to cause
my pages to appear as a centered block against a contrasting
background. This works well in new browsers (Mozilla, etc.) and...
|
by: Koen |
last post by:
Hi all,
My application uses a lot of lookup tables.
I've splitted the frontend (forms, reports, etc) from the backend (data).
The database has around 10 different users.
The values in the...
|
by: Iams |
last post by:
What do I have to do to get a column in a table to stay the same size no
matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to
work; for...
|
by: Eric E |
last post by:
Hi,
I'm trying to write a recordset-returning function that returns a
values from a base table, and one column from a joined table, where the
joined table varies according to a field of the base...
|
by: Alan Silver |
last post by:
Hello,
I understand the issue that tables should be used for tabular data and
not for layout, but I would like some clarification as to exactly what
constitutes tabular data.
For example, if...
|
by: tshad |
last post by:
I have created a table with 2 columns.
In column 1, I have text and column 2 I have controls.
The problem is that the text is not being displayed correctly. For example
I have:
column 1 ...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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...
|
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...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |