• 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

how to add scroll bars in a JSP table?

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
i am displaying two tables in two columns of a row. i want to add vertical scroll bars in one of those tables.
how can i do it?
please guide.
thank you.
 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
insert the tables in a <div> your_table </div> tag set.
and then set the scroll property of <div> to true.
 
amit daundkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dawn Charangat wrote:insert the tables in a <div> your_table </div> tag set.
and then set the scroll property of <div> to true.



thank you buddy,
but it is not working. i use mozilla firefox browser. is it a browser specific behavior?
please reply.
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That I'm not sure... but I just checked it, and it works in firefox as well. Try this:

<div style="height:40px; overflow:auto">
put_your_table_in_here
</div>


you can change the height:40px to whatever height you need the table to be displayed.

cheers,
Dawn.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP, not HTML.

For more information, please read this.

This post has been moved to a more appropriate forum.

 
amit daundkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dawn Charangat wrote:That I'm not sure... but I just checked it, and it works in firefox as well. Try this:

<div style="height:40px; overflow:auto">
put_your_table_in_here
</div>


you can change the height:40px to whatever height you need the table to be displayed.

cheers,
Dawn.




thank you dawn.
 
reply
    Bookmark Topic Watch Topic
  • New Topic