• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

scrollbars and div tag

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<div style="height:300px;overflow:scroll"></div>

Eric
 
meera jan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic