Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Width needs to go beyound 100%

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
Currently I had the table width do 100%, but latly, I have too many columns (columns depend on what fields user chose for display) , and the wordings in the comboboxes are cut off, and I need to the table to get as big as it needs to be for the comboboxes to show the whole text, when I remove the width properties (100% so forth) , my table becomes even smaller only covering 25% of the width, with the comboboxes crunched down even further.

anyone know how I can get the Table width to be dynamic to how much room I need, even if it requires going beyound the width of the screen? Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
If you add nowrap to the important cells that could help. Other than that you might want to set width to the important cells.

The table is trying to jam into the window, without a given dimension anywhere it is like jello. Setting a few given dimension in the critical areas of the tables helps.

Rememeber not to 'drag' the cell borders or FP will add dimensions to everything again. » » » » » »
Mike Barone
FREE and Pro CGI/Perl Scripts

FREE Scripts
 
I dont use FP or a WYSIWYG editor, it's Active Server Page, code written, Dynamic, I cant set width to "important" fields, because the number of columns is dynamic to what the user choses Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
Well, you could set the widths of your combo boxes each time you create them --

That should force the table to be as wide as it needs to be in order to accomodate all the cells -- leave off any widths for the cells or the table, and let the explicit settings of the widths for the combo boxes do the work for ya.

:)
Paul Prewett
 
can combo boxes(<select>....) take widths? I didnt think that was acceptible for both IE and NS, the only problem is, (assuming if it does work) if I Set the comboboxes to 100% , that wont make the combo boxes larger, because it'll only be 100% of the table cell it's enclosed in, also I Cant put a set width, because the width I chose may be too large, or too small for the text depending on the columns the user have chosen. (in otherwords, if I were to set a static width for a cell, how would I know how big to make it depending on the length of the text) Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
Well, yes, you can set widths of combo boxes with styles, but to be honest, I'm not sure if it would work in Nutscrape. I'm one of the lucky ones that simply doesn't have to bother with MS & NS's petty bickerings.

I see your problem, certainly... I suppose you could check to see what the max length of any string that was being assigned to one of the text values of the options were, and then set your widths accordingly, although that would be a trial and error proposition, and it would never come out just right every single time.

Actually, I find it very wierd that the combo boxes won't just set their own widths according to the same... mine always do. Could you throw a sample of this page up on your server somewhere and post a link to it? I'd be interested in digging a little deeper on this one, too.

hmmmmm....
paul
 
Well, yes, you can set widths of combo boxes with styles, but to be honest, I'm not sure if it would work in Nutscrape. I'm one of the lucky ones that simply doesn't have to bother with MS & NS's petty bickerings.

I see your problem, certainly... I suppose you could check to see what the max length of any string that was being assigned to one of the text values of the options were, and then set your widths accordingly, although that would be a trial and error proposition, and it would never come out just right every single time.

Actually, I find it very wierd that the combo boxes won't just set their own widths according to the same... mine always do. Could you throw a sample of this page up on your server somewhere and post a link to it? I'd be interested in digging a little deeper on this one, too.

hmmmmm....
paul
 
WHOA!

Sorry about that. I put my foot in my mouth there. I assumed, and we know what that does. Sorry about that... I went straight to InterDev, and in fact, you can't set the widths of those things...

However, I put in a very long string, and managed to make the box the entire width of the page....

?????
paul
 
Ever have one of those days?

This works:
<SELECT id=select1 name=select1 style=&quot;WIDTH: 500px&quot;>
 
hmm , I could but then I'd be giving away the Developement Server's IP Addy.

When I remove all the width from all the cells and tables, the comboboxes show nothing but their pulldown button(in otherwords, the table automatically shrinks itself so small that the only thing the box shows is the button to pulldown)

nothing happens when I set width to the combo box , either by width= or style=, and when I Set a static width to the <TD> that contains the combo boxes, even enough that I know would go beyound the screen, the table will never grow beyound the width of the screen, the only time the table will grow that big, is, when and only when the main table itself is set to a static size bigger than the screen, or to a percentage greater than 100%, which in either case is always static in a sense, and I dont want to set 150% for something that may only have 3 columns and such.
this is a screenshot of what I am talking about, note how if you have a bunch if entries,

Table.column, and you can only see part of table, you have no clue what you are working width, this problem isnt much of a problem for users who decide to only chose a couple of fields, but for those big rollers they choose alot ( I would do a different design, but politically , my &quot;manager&quot; feel it would be more worthwhile to make the table go off the edge of the screen since most analyst are used to horizontally scrolling thru their data)

Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
&quot;However, I put in a very long string, and managed to make the box the entire width of the page....
&quot;

if you try a bunch you'll notice it never goes over the edge.

hmm I had an idea, I'm going to check my frameset properties, will let you know Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
(inner frameset, there are three major frames, this is the frameset for the center frame)
Code:
<FrameSet rows=&quot;*,50&quot; border=&quot;0&quot; frameborder=&quot;0&quot;  framespacing=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
	<frame src=&quot;<%=MainFrame%>?CurrentPage=<%=CurrentPage%>&quot; name=&quot;Main&quot;>
	<%jump_menu_link=&quot;JumpMenu.asp?CurrentPage=&quot;&CurrentPage&&quot;&choice=&quot;&choice%>
	<frame src=&quot;<%=jump_menu_link%>&quot; scrolling=&quot;no&quot;>
</FrameSet>

well the frameset seems to be in pretty good order, since the mainframe (the one with the customization in it) does not have scrolling=no , only the jumpmenu frame has the scrolling turned off, and I have managed to make it scroll when statically setting the main table (which doesnt help, because its not dynamic to the combo)

so I know it's not my frameset setup preventing this Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
I never did find a solution to this problem(my computer was dead over the weekend, least I have the work PC) Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top