Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling Table

Status
Not open for further replies.

columbo1977

Programmer
May 9, 2006
49
GB
Hi,

I am new to javascript and i have a table of data that I need to display in a webpage but i dont want it to go of the edge of the page I would like a certain number of records shown and scroll bars down the side to see the rest.

Any help would be appriciated.

Thanks

Columbo1977
 
Look into the CSS overflow property.
You can put your table inside a DIV or SPAN element and set the overflow style property for that element so that it will give vertical or horizontal scrollbars as needed.

Remember when you set the width/height of the DIV or SPAN that you have to allow for the size of the scrollbar as well and it varies in size a bit between various browsers.


It's hard to think outside the box when I'm trapped in a cubicle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top