In my JSP i have a series of records. I have kept a scroll bar when no of records exceeds that limited display area. Now the issue is if there are no records or very few records that display area is shown as blank. I want the page to be adjusted with the no of records i have. that is if the display area is for 10 records it can be adjusted for 10 records or 2 records and should display a scroll bar if it exceeds 10 records.
set it to have a set height:XXXpx and set scroll:auto;
Joined: Jun 12, 2004
Thanks for the advice.
I have already set it like that ..
I have set the height:150px scroll=auto
This is working fine if i have records to be displayed for the specified height. The case is when we have only one record or two records... the rest of the height specified is displayed as blank ......
I wanted to reduce the height when there are less no of records and fix it to 150px height if there are more no of records and let the users scroll down to see the rest of the records.
Joined: Nov 08, 2001