This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scrollbars and div tag

 
meera jan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Here i will describe my problem.
In a webpage,I have alot of controls.One of them is the selection of countries.For that i have to display all the countries from the database.
In my jsp page i have the countrylist in requestscope.I want to iterate the collection to display it.My problem is,for each item in the list,i have to display a checkbox sothat user can select that country.
Overall,I have to dispaly the list inside a div tag so that each row contains 5 countries and should provide the scrollbars so that user can scroll down the countries for selection.I was able to do that,but scrollbars is not coming.Without scrollbars the total list is displaying and the entire page is getting enlarged.Does anyone got what i am trying to explain?Please suggest any idee to do the same.
thanx
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<div style="height:300px;overflow:scroll"></div>

Eric
 
meera jan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to adjust th size of the div to the size of column of the table what should i do?because i am placing the controls as 2 columns in each row.first column is the label and second is the control.so i have to fit the div in the second column of a particular row.Now because of the div,that particular column is getting enlarged.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic