Page 1 of 1
Making a scrollbox
Posted: Sun Sep 04, 2005 5:23 am
by sausage boy
Hey everyone
Just a general question for anyone in the know.
I'm helping a mate set up a site, and we want to put a section that can have scrolling text in it. Anyone know how to set up a scrolling text boxy thing? Were using Dreamweaver, if that helps in any way at all.
I now return you to your regularly scheduled topic.
Posted: Sun Sep 04, 2005 11:27 am
by john m
If you mean something like on
my site, it's called an iFrame. Pretty easy to set up. The code on my site is:
Code: Select all
<iframe name="cwindow" style="border:0px solid blue" width="100%" height=412 src="main.html"></iframe>
Throw the iframe tag in whatever table cell you want, then tailor the code attributes to your site's specifics.
Posted: Sun Sep 04, 2005 4:45 pm
by sausage boy
rock!
I'll give that a go.
Posted: Tue Sep 06, 2005 10:56 am
by fluffy
Another way to do it which is more accessible to older browsers and the visually-impaired and so on, and which doesn't require an external page dependency:
Code: Select all
<div style="overflow:auto; width: 640px; height: 480px;">stuff goes in here </div>
The 'overflow:auto' CSS attribute just means 'if the content is too big to fit in this container, put a scrollbar on the parent.' Older browsers will just size the container to fit the content. Really old browsers will just display the content inline.
Posted: Tue Sep 06, 2005 5:19 pm
by sausage boy
Thanks Fluffy.