scrollable content

They have: 1 posts

Joined: Feb 2009

Hi,

Does any one know how I go about creating a scrollable section of a web page?

I have looked at using nested frames but this doesnt seem to be the answer.

I have quite a compact looking web page however there will be an area of the site where the content will out stretch the boundaries of my current design which is why I need a scroll bar for that specific area of cotent.

Please have a look at the site as this may help you to understand whatIm going for.

{link removed because of malware}

I have also attached an image to help explain what I mean.

Cheers

AttachmentSize
scrollable demo.gif74.13 KB
Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Try overflow:auto or overflow:scroll in CSS.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Hi taylorosso,

Welcome to TWF! Laugh

Unfortunately, my Avast antivirus detected a worm/trojan named "VBS:Malware-gen" on your web site...

another approach would be including the content in an iframe, but the overflow method Megan suggested is preferable

(The iframe element is not supported in HTML 4.1 Strict DTD and in XHTML 1.0 Strict DTD.)

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

Hi taylorosso,

I removed the link in your post because of the malicious Javascript in order to protect TWF members (nice catch, decibel.places). The link can be reposted once that Javascript at the end of the page is removed from your site.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.