Results 1 to 12 of 12
Thread: Scrollbars in tables
Hybrid View
-
09-22-2003, 05:50 AM #1New Member
- Join Date
- Sep 2003
- Posts
- 2
Scrollbars in tables
Is there a way to do it? so I have only a table that scrolls down which will contain more content, and not the whole page?
-
09-22-2003, 07:05 AM #2Web Hosting Master
- Join Date
- Aug 2002
- Location
- London, UK
- Posts
- 9,039
Use an iframe to achieve this.
Matt Wallis
United Communications Limited
High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.
-
09-22-2003, 08:02 AM #3Web Hosting Master
- Join Date
- May 2002
- Location
- UK
- Posts
- 2,997
You can do it in DHTML, but it's not worth the effort IMHO when you can do it in iframes
-
09-22-2003, 08:18 AM #4New Member
- Join Date
- Sep 2003
- Posts
- 2
Well I've never used frames before, so how would I do it?
Edit: Never mind, I saw the other topic in here about it, and have done it ThanksLast edited by Teh Plug; 09-22-2003 at 08:38 AM.
-
09-22-2003, 11:32 PM #5Newbie
- Join Date
- Oct 2002
- Posts
- 24
what did u use?
i only know how to use <div>
-
09-23-2003, 05:29 AM #6Web Hosting Master
- Join Date
- May 2002
- Location
- UK
- Posts
- 2,997
Read this forum... loads of threads about iframes alone!
-
09-24-2003, 12:22 AM #7New Member
- Join Date
- Sep 2003
- Posts
- 3
use tbody
we can create a tbody in css with this code
tbody {
height: 20;
overflow: scroll;
}
then just put a <tbody> tag before
<tbody>
<tr><td>body</td></tr> ... ... ..
</tbody>
works only in netscape though...
-
09-25-2003, 10:47 AM #8Web Hosting Master
- Join Date
- Jul 2002
- Location
- Sweden
- Posts
- 2,059
Overflow to create a scrollbar works in IE as well.
"Stop flame-wars - Report a post"
The original Kitty Lizard
-
09-26-2003, 01:19 AM #9New Member
- Join Date
- Sep 2003
- Posts
- 3
Originally posted by Reptilian Feline
Overflow to create a scrollbar works in IE as well.
i dont know why but it seems that it doesn't work. on my IE... oh well i love using mozilla-firebird so i uges its ok.
-
09-26-2003, 02:29 AM #10Web Hosting Master
- Join Date
- Jul 2002
- Location
- Sweden
- Posts
- 2,059
Put a div inside the TD and make that scrollable instead. Post some code and I'll test a couple of variations for you.
"Stop flame-wars - Report a post"
The original Kitty Lizard
-
10-01-2003, 03:48 AM #11New Member
- Join Date
- Sep 2003
- Posts
- 3
Originally posted by Reptilian Feline
Put a div inside the TD and make that scrollable instead. Post some code and I'll test a couple of variations for you.
but its just so hard aligning the headers to the body.
so i used tbody.
you cant use the <DIV> outside the <TD>.
and you cant use the <DIV> inside the table either. so get the picture... you have to create a separate <TABLE> for the header and the body its so hard to align.
-
10-01-2003, 04:00 AM #12WHT Addict
- Join Date
- May 2003
- Location
- Lima, Perú
- Posts
- 164
HTML:
Code:<table width="450" border="1" cellspacing="0" cellpadding="0"> <tr height="80"> <td width="90" height="80"> <span class="scroll"> This will scroll. </span> </td> </tr> </table>
Code:.scroll { width: 100%; height: 100%; overflow: auto }