473,804 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tables and column sizes

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=bla ck 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="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px"><uc1:ucMe nu
id=UcMenu1 runat="server"> </uc1:ucMenu></td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="white" rowspan=3>&nbsp ;</td>
</tr>
<tr valign=top width="100%"><t d valign=top><uc1 :ucGeneral id=UcGeneral1
runat="server"> </uc1:ucPointOfDi versionGeneral> </td></tr>
<tr valign=top height="100%" width="100%"><t d valign=top><uc1 :ucDetails
id=UcDetails1 runat="server"> </uc1:ucDetails></td>
</tr>
</table>
Thanks.
Nov 19 '05 #1
5 1755
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******** ********@TK2MSF TNGP12.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=bla ck 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="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px"><uc1:ucMe nu
id=UcMenu1 runat="server"> </uc1:ucMenu></td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="white" rowspan=3>&nbsp ;</td>
</tr>
<tr valign=top width="100%"><t d valign=top><uc1 :ucGeneral id=UcGeneral1
runat="server"> </uc1:ucPointOfDi versionGeneral> </td></tr>
<tr valign=top height="100%" width="100%"><t d valign=top><uc1 :ucDetails
id=UcDetails1 runat="server"> </uc1:ucDetails></td>
</tr>
</table>
Thanks.

Nov 19 '05 #2
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******** ********@TK2MSF TNGP12.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=bla ck 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="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px"><uc1:ucMe nu
id=UcMenu1 runat="server"> </uc1:ucMenu></td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="white" rowspan=3>&nbsp ;</td>
</tr>
<tr valign=top width="100%"><t d valign=top><uc1 :ucGeneral id=UcGeneral1
runat="server"> </uc1:ucPointOfDi versionGeneral> </td></tr>
<tr valign=top height="100%" width="100%"><t d valign=top><uc1 :ucDetails
id=UcDetails1 runat="server"> </uc1:ucDetails></td>
</tr>
</table>
Thanks.

Nov 19 '05 #3
For the table set css rule table_layout:fi xed; then specify the width for
the columns in the first row.

Eliyahu

"Iams" <Iams@hotmail > wrote in message
news:%2******** ********@TK2MSF TNGP12.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=bla ck 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="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px"><uc1:ucMe nu
id=UcMenu1 runat="server"> </uc1:ucMenu></td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="white" rowspan=3>&nbsp ;</td>
</tr>
<tr valign=top width="100%"><t d valign=top><uc1 :ucGeneral id=UcGeneral1
runat="server"> </uc1:ucPointOfDi versionGeneral> </td></tr>
<tr valign=top height="100%" width="100%"><t d valign=top><uc1 :ucDetails
id=UcDetails1 runat="server"> </uc1:ucDetails></td>
</tr>
</table>
Thanks.

Nov 19 '05 #4
For the table set css rule table_layout:fi xed; then specify the width for
the columns in the first row.

Eliyahu

"Iams" <Iams@hotmail > wrote in message
news:%2******** ********@TK2MSF TNGP12.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=bla ck 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="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px"><uc1:ucMe nu
id=UcMenu1 runat="server"> </uc1:ucMenu></td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="white" rowspan=3>&nbsp ;</td>
</tr>
<tr valign=top width="100%"><t d valign=top><uc1 :ucGeneral id=UcGeneral1
runat="server"> </uc1:ucPointOfDi versionGeneral> </td></tr>
<tr valign=top height="100%" width="100%"><t d valign=top><uc1 :ucDetails
id=UcDetails1 runat="server"> </uc1:ucDetails></td>
</tr>
</table>
Thanks.

Nov 19 '05 #5
Great ideas! Thanks so much!
"Robbe Morris [C# MVP]" <in**@turnkeyto ols.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.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******** ********@TK2MSF TNGP12.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=bla ck 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="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px"><uc1:ucMe nu
id=UcMenu1 runat="server"> </uc1:ucMenu></td>
<td bgcolor="#ccccc c" rowspan=3 style="WIDTH: 10px">&nbsp;</td>
<td bgcolor="white" rowspan=3>&nbsp ;</td>
</tr>
<tr valign=top width="100%"><t d valign=top><uc1 :ucGeneral id=UcGeneral1 runat="server"> </uc1:ucPointOfDi versionGeneral> </td></tr>
<tr valign=top height="100%" width="100%"><t d valign=top><uc1 :ucDetails id=UcDetails1 runat="server"> </uc1:ucDetails></td>
</tr>
</table>
Thanks.


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5216
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 COLUMN Table contain abt. 40 mill records Appriciate the help, as i am just DBA stand in in my project:-)
44
3901
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 other browsers (I checked it under Konqueror). Thank you in advance for your help. Regards. /Mariusz <HTML>
1
3249
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 the 'iherit' keyword for td, tr, is not supported? Attached is the stylesheet in question. Let me preface this by saying, I have { border-collapse: collapse } set as the border rendering mode.
5
2650
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 falls back fine in IE6 and lesser creations. As one who practices "classic" (i.e. dull) typography, this has always been satisfactory since I've always used one-column pages. I'm now trying a two column layout so I can include a sidebar, and am...
9
7035
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 lookup tables are not likely to change. Question 1: Should I include them in the backend (with rest of data) or the frontend?
0
263
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 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...
1
4572
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 table. I'm looking for an efficieint way to do this, and I don't think I know enough about Postgres' capabilities to know how to do this. I imagine fetching my base table rows in order of the table reference column, looping over my base table,...
53
4243
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 I have a form, in which the user is required to fill in various bits of information, then laying out with a table makes it easy. A basic example...
0
1072
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 column 2 Monthly investment Textbox Annual interest rate Textbox
0
9595
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
10604
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10359
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
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
9177
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...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
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
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3005
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.