Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll area within page

Status
Not open for further replies.

SjrH

IS-IT--Management
Jun 24, 2003
747
GB
I'm looking to be able to create a scroll area within a confined space on a webpage. I've seen some pages like -
(lower right part of the page) that accomplish this.

Is this something that can be achieved with css or should I be looking at javascript (or maybe both!)?!

Thanks
 
You mean an area that has its own scrollbars? You can do that via CSS -- the secret is [tt]overflow: auto;[/tt]:
Code:
<div style="width: 100px; height: 100px; overflow: auto;">
  Put lots of content here.
</div>
 
Ah yes, thats the ticket!

Some of the pages i've seen tend to auto scroll when you hover the mouse over the up or down arrow but I don't need that functionality.

This'll do great, thanks :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top