jQuery to add vertical scroll bar for a fixed height div container

Posted by Michael Mao on Stack Overflow See other posts from Stack Overflow or by Michael Mao
Published on 2010-03-31T00:38:19Z Indexed on 2010/03/31 0:43 UTC
Read the original article Hit count: 974

Filed under:
|
|
|

Hi all:

This is uni homework so sorry about :my password protected url

Please enter usersame as "uts" and password as "10479475", without the wrapper quotes.

It it almost completed, please follow simple steps to see where my problem dwells:

step1: click on any continent highlighted on world map;

step2: click on any city marked on continent map;

step3: enter quantity ranging from 1 to 6 into the upper-right table;

step4 : there you go, in the table below, once row is equal or greater than 3, then the size of table starts to "overlap" on top of the footer section and continues to grow, which is not what I want.

I want to achieve the effect that the table size has a limited max-height, so once actual height exceeds the threshold, then I can have a vertical scroll bar so to "stack up" my table and not to break the overall structure. It turns out that my lazy initial design now gets myself stuck in a problem...

Any suggestion and hint on how to get this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript