wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes how to add scroll bars in a JSP table? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to add scroll bars in a JSP table?" Watch "how to add scroll bars in a JSP table?" New topic
Author

how to add scroll bars in a JSP table?

amit daundkar
Ranch Hand

Joined: Jan 24, 2009
Posts: 47
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

Joined: Apr 26, 2007
Posts: 249
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

Joined: Jan 24, 2009
Posts: 47
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

Joined: Apr 26, 2007
Posts: 249
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

Joined: Jan 10, 2002
Posts: 61426
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
amit daundkar
Ranch Hand

Joined: Jan 24, 2009
Posts: 47
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.
 
jQuery in Action, 2nd edition
 
subject: how to add scroll bars in a JSP table?