Table with scrollbar?
Moderator: General Moderators
-
WithHisStripes
- Forum Contributor
- Posts: 131
- Joined: Tue Sep 13, 2005 7:48 pm
Table with scrollbar?
Heya,
I know this doesn't directly apply to PHP but I can't find anyone who knows how to do this: I need to create a table with a scrollbar, please tell me one of you know! Thanks
-Spence
I know this doesn't directly apply to PHP but I can't find anyone who knows how to do this: I need to create a table with a scrollbar, please tell me one of you know! Thanks
-Spence
-
WithHisStripes
- Forum Contributor
- Posts: 131
- Joined: Tue Sep 13, 2005 7:48 pm
Thanks for the reply bud, but that didn't seem to work, it puts scrolls on the left hand side of the frame and I need them on the right, but as far as I can see I iserted the div tags in the right hand frame, what am I missing? You can view my files at http://www.hookweb.net/testing/table_with_scroll.zip
-Spence
thanks
-Spence
thanks
I don't believe elements scrolling is standards compliant (correct me if I'm wrong)
you should use a div to scroll, even if it's inside the table cell
PS: Shouldn't this be client side? 
you should use a div to scroll, even if it's inside the table cell
Code: Select all
<td>
<div style="height: 100%; width: 100%; overflow: auto;">
content
</div>
</td>Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
WithHisStripes
- Forum Contributor
- Posts: 131
- Joined: Tue Sep 13, 2005 7:48 pm
Thanks for the input but I am still either not understanding what you guys are suggesting or overlooking something. Because when I insert that code into my HTML document nothing happens. It messes up my page by adding an extra table or it does nothing at all, and there is definately no scroll bar. Could someone give me an actual example of it inside a table with content and a scroll bar instead?
-Thanks guys
-Thanks guys
Code: Select all
<table width="500" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<div style="height: 300px; width: 400px; overflow: auto;">
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
Content<BR>
</div>
</td>
</tr>
</table>Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.