Scrollable Table

windows

Guest
How do I fix the table size and make the table scrollable.<br />
eg:If I have 1000 records displayed in the table i wanted table not to increase or decrease with respect to the content size.I want a fixed table and regardless of the content size and make it scrollable<!--content-->If its just a simple list you can use a textarea box:<br />
<br />
<form><br />
<textarea COLS=60 ROWS=10><br />
your lists here<br />
your list here<br />
your list here<br />
blah<br />
blah<br />
blah<br />
</textarea><br />
</form><br />
<br />
and using style attributes you can put a nice border around the textarea table and color the backgound and the font faces/colors/sizes, but you can't add hyperlinks or other active HTML code, for that you would need to use JAVAscripting.<!--content-->Originally posted by kevin <br />
...but you can't add hyperlinks or other active HTML code, for that you would need to use JAVAscripting. If you want the stuff in quotes, you could use this:<br />
<br />
===========================================================<br />
<br />
<html><br />
<br />
<head><br />
<title>Scrolling text in DIV tags</title><br />
</head><br />
<br />
<body><br />
<br />
<table><br />
<tr><br />
<td><div style="width: 100; height:20; overflow-y: scroll"><p>Hello... How are you doing<br />
today? Click <a href=http://www.htmlforums.com/archive/index.php/"http://www.yahoo.com">here</a> to go to Yahoo!</p><br />
</div></td><br />
</tr><br />
</table><br />
</body><br />
</html><br />
<br />
===========================================================<!--content-->tables themselves cannot scroll, but you can do it this way.<br />
<br />
<br />
<tr><br />
<td><br />
<div style="overflow: auto; height:150px;"><br />
your data here<br />
</div><br />
</td> <br />
</tr><!--content-->
 
Back
Top