View Full Version : Scrollbars in table cells?
Is it possible to have scrollbars in table cells because I just sliced up a template and I tried using an iframe but it screwed it all up.
If there is anyway I can add scrollbars to a table cell That would be awesome. If not, what should I do?
crimsonmoon
11-16-2004, 02:04 PM
you could try using some sort of javascript app.
try http://www.dynamicdrive.com
mahangee
11-16-2004, 04:55 PM
Why dont you use a text box?
Would be alot simpler and you could format it with attributes and CSS.
Ipsquiggle
11-16-2004, 07:40 PM
Use CSS!!! (http://www.domedia.org/oveklykken/css-div-scroll.php)
If you don't understand how CSS works.. take a little bit of time and learn.. It is, I would have to say, the single most useful thing I have ever learned regarding web design. Period.
Basically what tha page says, in a nutshell, is put the content that you want scrollable in a DIV (so you would have <td><div></div></td>) and apply the mentioned CSS class, tweakd to your desires, to that div. Then it will scroll if it needs to. :) The beauty of this is that anything in the scrolling area is still regular HTML, so you can have pictures, whatever. :)
Soldier00
11-17-2004, 06:57 PM
yes u can thats all i can say coz i saw some pages that got that ,,..
Jette
11-20-2004, 07:13 AM
not sure about table cells..
http://www.domedia.org/oveklykken/css-div-scroll.php
^ should help, ifyou do div instead. or on second thoughs, you can put the div inside the table, so theoretically it should work.
shwaza
11-24-2004, 03:43 PM
You could use Iframes, i plan to use some iframes in my website when its finally done. I'll go get the script. *goes to get the script*
Ok i found it
<html>
<head>
<title>Iframe Test</title>
</head>
<body>
<iframe src="http://google.com/" name="myiframe" width="500" height="200" frameborder="1" scrolling"auto">
</body>
</html>
Just change the width"" and height"" to make it the size you want, and the src="" to what the url you want to appear, hope that helps :)
I decied to use a javacript scroller. I tried using iframes but it screwed everything up. It looks cool as it is. Thanks for the replys.
Terminator
11-26-2004, 03:57 AM
These are new knowledge to me. Thank you all.
chilipie
12-03-2004, 05:03 PM
It would be better to do this with CSS, and even though you have fixed it now, I thought I'll posts it anyway, so that other members of Hostmatrix can use it.
HTML:
<td class="scroll">
The content that you want to scroll would go here - make sure you add enough, or the cell will not scroll.
</td>
CSS:
td.scroll {
height: 100px; /* change to suit your needs */
width: 100px; /* change to suit your needs */
overflow: auto;
}
I hope that you will benefit from this :) .
Jette
12-04-2004, 02:39 AM
overflow types:
overflow: auto - This will insert a scrollbar - horizontal, vertical or both only if the content in the block requires it. For practical purposes, this is probably the most useful for creating a scrolling area.
overflow: scroll - This will will insert horizontal and vertical scrollbars. They will become active only if the content requires it.
overflow: visible - This will cause the block to expand to view the content.
overflow: hidden - This forces the block to only show content that fits in the block. Other content will be clipped and not hidden with no scrollbars.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.