HighDots Forums  

making a table grow horizontally rather than vertically, possiblyusing frames

alt.html alt.html


Discuss making a table grow horizontally rather than vertically, possiblyusing frames in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Scott
 
Posts: n/a

Default making a table grow horizontally rather than vertically, possiblyusing frames - 10-28-2009 , 06:56 PM






I have a frame-based application that shows two table rows in the
bottom-most frame of the window. The problem I'm having is that if I
try to show too much data down there, the table always grows row size
vertically by using excessive amounts of wrapping. If I try to show
this page on a small screen, like a laptop, the excessive amount of
wrapping produces output that is unreadable (table cells that are ten
lines tall with one word per line).

What I'd much rather have happen is for the table to grow the rows
horizontally, adding a horizontal scrollbar as necessary.

I've tried a couple of approaches to this, the first being to try to
apply the "max-height" property to <TD> or <TR> via css, but this
attribute seems to be either outright ignored or unsupported. I also
tried the following, which seems like it should work, but does
nothing:

<style>
td {
white-space:nowrap;
}
</style>

Even if I could get nowrap to work, that's suboptimal as I'd really
like to allow one line of wrapping (each table cell a maximum of two
lines high).

Any ideas?

Scott

Reply With Quote
  #2  
Old   
Jan C. Faerber
 
Posts: n/a

Default Re: making a table grow horizontally rather than vertically, possiblyusing frames - 10-28-2009 , 07:48 PM






On Oct 28, 11:56*pm, Scott <smba... (AT) gmail (DOT) com> wrote:

Quote:
Any ideas?

Scott

use percent?

Reply With Quote
  #3  
Old   
richard
 
Posts: n/a

Default Re: making a table grow horizontally rather than vertically, possibly using frames - 10-28-2009 , 11:54 PM



On Wed, 28 Oct 2009 15:56:00 -0700 (PDT), Scott wrote:

Quote:
I have a frame-based application that shows two table rows in the
bottom-most frame of the window. The problem I'm having is that if I
try to show too much data down there, the table always grows row size
vertically by using excessive amounts of wrapping. If I try to show
this page on a small screen, like a laptop, the excessive amount of
wrapping produces output that is unreadable (table cells that are ten
lines tall with one word per line).

What I'd much rather have happen is for the table to grow the rows
horizontally, adding a horizontal scrollbar as necessary.

I've tried a couple of approaches to this, the first being to try to
apply the "max-height" property to <TD> or <TR> via css, but this
attribute seems to be either outright ignored or unsupported. I also
tried the following, which seems like it should work, but does
nothing:

style
td {
white-space:nowrap;
}
/style

Even if I could get nowrap to work, that's suboptimal as I'd really
like to allow one line of wrapping (each table cell a maximum of two
lines high).

Any ideas?

Scott
height:100px;
width:auto;
replace 100px with what ever value you need.

Reply With Quote
  #4  
Old   
dorayme
 
Posts: n/a

Default Re: making a table grow horizontally rather than vertically, possibly using frames - 10-28-2009 , 11:55 PM



In article
<7f5facb4-13c0-4c57-a3f6-5f8ed1fef6b8 (AT) x5g2000prf (DOT) googlegroups.com>,
Scott <smbaker (AT) gmail (DOT) com> wrote:

Quote:
I have a frame-based application that shows two table rows in the
bottom-most frame of the window. The problem I'm having is that if I
try to show too much data down there, the table always grows row size
vertically by using excessive amounts of wrapping. If I try to show
this page on a small screen, like a laptop, the excessive amount of
wrapping produces output that is unreadable (table cells that are ten
lines tall with one word per line).

What I'd much rather have happen is for the table to grow the rows
horizontally, adding a horizontal scrollbar as necessary.

I've tried a couple of approaches to this, the first being to try to
apply the "max-height" property to <TD> or <TR> via css, but this
attribute seems to be either outright ignored or unsupported. I also
tried the following, which seems like it should work, but does
nothing:

style
td {
white-space:nowrap;
}
/style

Even if I could get nowrap to work, that's suboptimal as I'd really
like to allow one line of wrapping (each table cell a maximum of two
lines high).

Any ideas?

You can't control so exactly the number of lines in advance. But you can
do other things to alleviate the problem. How about trying a few numbers
to suit you like in:

td {min-width: 20em;}

Browser support might be an issue but take a look.

--
dorayme

Reply With Quote
  #5  
Old   
Neredbojias
 
Posts: n/a

Default Re: making a table grow horizontally rather than vertically, possibly using frames - 10-29-2009 , 05:20 AM



On 28 Oct 2009, Scott <smbaker (AT) gmail (DOT) com> wrote:

Quote:
I have a frame-based application that shows two table rows in the
bottom-most frame of the window. The problem I'm having is that if I
try to show too much data down there, the table always grows row size
vertically by using excessive amounts of wrapping. If I try to show
this page on a small screen, like a laptop, the excessive amount of
wrapping produces output that is unreadable (table cells that are ten
lines tall with one word per line).

What I'd much rather have happen is for the table to grow the rows
horizontally, adding a horizontal scrollbar as necessary.

I've tried a couple of approaches to this, the first being to try to
apply the "max-height" property to <TD> or <TR> via css, but this
attribute seems to be either outright ignored or unsupported. I also
tried the following, which seems like it should work, but does
nothing:

style
td {
white-space:nowrap;
}
/style
You're either using an archaic browser or you screwed up.
white-space:nowrap; works fine on a td.

Quote:
Even if I could get nowrap to work, that's suboptimal as I'd really
like to allow one line of wrapping (each table cell a maximum of two
lines high).
How would the 1st line know to break and the 2nd not? That might be a
wee bit difficult to impliment.

--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/

Reply With Quote
  #6  
Old   
Jan C. Faerber
 
Posts: n/a

Default Re: making a table grow horizontally rather than vertically, possiblyusing frames - 10-29-2009 , 07:36 AM



On Oct 29, 10:20*am, Neredbojias <neredboj... (AT) gmail (DOT) com> wrote:

Quote:
tried the following, which seems like it should work, but does
nothing:

style
td {
white-space:nowrap;
}
/style

You're either using an archaic browser or you screwed up.
white-space:nowrap; works fine on a td.
seems plausible
Jukka's discussion and a second link:
http://archivist.incutio.com/viewlist/css-discuss/51261
http://www.w3.org/MarkUp/html3/tables.html

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.