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!

Scroll bar for table ??? 1

Status
Not open for further replies.

lingyi

Programmer
Apr 11, 2001
65
SG
Hi,
I try to create scroll bar for my table but failed. Please help me look at the code and tell me what wrong. Thanks..:)

<table style=&quot;overflow:scroll;height:50;width:200;&quot; border=&quot;1&quot;>
<% if not rsNotices.eof then
While not rsNotices.eof
%>
<tr>
<td align=&quot;center&quot;><font color=&quot;#000099&quot;><%=rsNotices(&quot;WebNoticeTitle&quot;)%></font></td>
</tr>
<tr>
<td><font color=&quot;#000099&quot;><%=rsNotices(&quot;WebNoticeNotes&quot;)%></font></td>
</tr>
<% rsNotices.moveNext
wend
end if
rsNotices.close
if Request.cookies(&quot;isLoggedInAs&quot;)(&quot;UserName&quot;)=&quot;sabir&quot; then
%>
<tr>
<td align=&quot;right&quot;><a href=&quot;WebNotices.asp&quot; target=&quot;content&quot;>Update..</a></td>
</tr>
<% end if %>
</table>
 
The Table tag has'n the overflow property, and therefore the scrolls does not apeear.
U have one way...
Create a frame with height:50;width:200 and then set the src to an html with your table. ________
George, M
 
hi,
What you means my table dont hv overflow property? Please explain it to me. I dont want to use any frame on it, is it another way to doing it ?
 
i take a look in my MSDN and at overflow property the table tag is not apeear there.
i find a way to not use frames
u have to use DIV or SPAN tags

Code:
<HTML>
<BODY>
<div style=&quot;OVERFLOW-Y: scroll; OVERFLOW-X: scroll; OVERFLOW: scroll; WIDTH: 200px; HEIGHT: 155px&quot;>
<table border=1>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
<tr>
	<td>asdfoksd</td>
	<td>egpospod</td>
</tr>
</table>	
<div>
</BODY>
</HTML>
________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top