• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add scroll bars in a JSP table?

 
amit daundkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • 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.
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic