HighDots Forums  

resizable table

alt.html.tags alt.html.tags


Discuss resizable table in the alt.html.tags forum.



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

Default resizable table - 06-23-2004 , 03:41 PM






I want a table like this

+---------------------------------------------------------+
Quote:
row one

+---------------------------------------------------------+


row two



+---------------------------------------------------------+
row three

+---------------------------------------------------------+

Row's one and three will be a fixed height. I want row two to fill up
whatever is left of the window, and the height should change when the window
is resized. I would prefer a method that is cross platform. Can I do this
without code?


--
"It's easy enough to be pleasant, when life hums along like a song.
But the man worth while is the man who can smile when
everything goes dead wrong.".




Reply With Quote
  #2  
Old   
Mitja
 
Posts: n/a

Default Re: resizable table - 06-23-2004 , 03:51 PM






Bootstrap bill <wrcousert (AT) yahoo (DOT) com>
(news:x1lCc.61913$wO4.21242 (AT) twister (DOT) socal.rr.com) wrote:
Quote:
I want a table like this

+---------------------------------------------------------+
row one

+---------------------------------------------------------+


row two



+---------------------------------------------------------+
row three

+---------------------------------------------------------+

Row's one and three will be a fixed height. I want row two to fill up
whatever is left of the window, and the height should change when the
window is resized. I would prefer a method that is cross platform.
Can I do this without code?
"Wthout code"? Now _that_ will be a tough one

Use something like
<style type="text/css">
html,body,table {height:100%}
tr.bar {height:5em;}
</style>
<table>
<tr class="bar"><td>foo</td></tr>
<tr><td>foo</td></tr>
<tr class="bar"><td>foo</td></tr>
</table>

The preferred way to do it is with divs, though:
<body style="padding: 150px 0">
<div style="position:absolute;top:0;left:0">header</div>
text foo bar
<div style="position:absolute;bottom:0;left:0">footer</div>
</body>

Both untested, but should work.

If you don't understand what I wrote (HTML&CSS, I mean, not this text), read
a tutorial on CSS. It's a must. Well... a should




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

Default Re: resizable table - 06-23-2004 , 04:13 PM



On Wed, 23 Jun 2004 21:51:42 +0200, Mitja <nun (AT) meyl (DOT) com> wrote:

Quote:
The preferred way to do it is with divs, though:
body style="padding: 150px 0"
div style="position:absolute;top:0;left:0">header</div
text foo bar
div style="position:absolute;bottom:0;left:0">footer</div
/body
One problem is if the user is on a monitor set for 450px high, the center
section is awfully small. You could impose scrolling on it.

Another problem is if the header material is larger than 150px. Resizing
text can cause this problem.

I think the design idea is flawed from the start, frankly, but there are
ways of getting it to work the way the OP wants - unfortunately, all
result in usability problems and/or an ugly design in some environments.


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

Default Re: resizable table - 06-23-2004 , 06:44 PM



In article <opr92c5kxm6v6656 (AT) news (DOT) individual.net>, neal413 (AT) yahoo (DOT) com
says...
Quote:
I think the design idea is flawed from the start, frankly, but there are
ways of getting it to work the way the OP wants - unfortunately, all
result in usability problems and/or an ugly design in some environments.
But ugly design doesn't matter. It makes no difference what the
presentation looks like as long as the user can read the content....
Content and content alone will keep the customer, presentation is
meaningless...

Yes, I was being sarcastic, and factious at the same time.

--
Whitecrest Entertainment
www.whitecrestent.com


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

Default Re: resizable table - 06-24-2004 , 07:59 AM



Neal <neal413 (AT) yahoo (DOT) com>
(newspr92c5kxm6v6656 (AT) news (DOT) individual.net) wrote:
Quote:
On Wed, 23 Jun 2004 21:51:42 +0200, Mitja <nun (AT) meyl (DOT) com> wrote:

The preferred way to do it is with divs, though:
body style="padding: 150px 0"
div style="position:absolute;top:0;left:0">header</div
text foo bar
div style="position:absolute;bottom:0;left:0">footer</div
/body

One problem is if the user is on a monitor set for 450px high, the
center section is awfully small. You could impose scrolling on it.
My fault - I should have tested it. It only renders in Opera as intended.
IE and Firefox put div.header at the bottom of the _viewport_. I've never
used bottom:0 in practice so I must say I was quite surprised to see this. I
expected the behavior from the specs, at least from Firefox: "In the
absolute positioning model, a box is explicitly offset with respect to its
containing block." But then, if things were done as per spec, you shouldn't
get the behavior OP wanted when text doesn't fill the viewport.
What have I overlooked?

Quote:
Another problem is if the header material is larger than 150px.
Resizing text can cause this problem.
Agreed. Should be 5em or something.

Quote:
I think the design idea is flawed from the start, frankly, but there
are ways of getting it to work the way the OP wants - unfortunately,
all result in usability problems and/or an ugly design in some
environments.




Reply With Quote
  #6  
Old   
Bootstrap bill
 
Posts: n/a

Default Re: resizable table - 06-24-2004 , 04:28 PM




"Bootstrap bill" <wrcousert (AT) yahoo (DOT) com> wrote

Quote:
I want a table like this
I'd like to thank everyone for their quick responses. I found a solution to
my problem and will post the URL to my site in a few days.

Thanks again!

-Bill




Reply With Quote
  #7  
Old   
Whitecrest
 
Posts: n/a

Default Re: resizable table - 06-24-2004 , 05:17 PM



In article <UPGCc.43$Fy.1 (AT) twister (DOT) socal.rr.com>, wrcousert (AT) yahoo (DOT) com
says...
Quote:
I'd like to thank everyone for their quick responses. I found a solution to
my problem and will post the URL to my site in a few days.
Oh sure you will.... You come here, and just take, take, take, and give
nothing. Then just like that you leave. Oh sure, you say you will
return with a url, but we both know the truth. The minute you leave
this forum some other fancy forum will catch your eye, and you will
never be back...

What about the children? Did you think about them?

--
Whitecrest Entertainment
www.whitecrestent.com


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.