jarndt
January 15th, 2004, 11:36 PM
Is it possible to create a scroll bar in a table or page without using frames.
I need this but the enviroment requires it to be coded in HTML only.
Need Help
rockboy
January 16th, 2004, 12:45 AM
Technically, yes. Not in a table exactly but it can be added anywhere in a page including a table using the 'div' element.
http://www.w3schools.com/css/pr_pos_overflow.asp
http://www.w3.org/TR/CSS2/
Here's a bit of code to get you started:
<div style="width:100px; height:100px;
overflow:scroll; border:1px solid black; ">
Text in here that exceeds the limits of the
dimensions specified will scroll.
</div>
This is CSS2 and probably won't work for early versions of Netscape. There might be a better way but I don't know it. If it's for a website, hope it works. If it's for homework, hope you get an 'A'. ;)