Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
|
There's nothing really special to it. Your html would just be a div with a class or id assigned and then everything you want to display inside:
<div id="scroll">
all your content here
</div>
Then the css:
div#scroll {overflow: scroll-y}
That would give you the vertical scrollbar and no horizontal one. You'll probably want to set the width and height of the div as well.
The css overlow property has a few values, but most likely scroll-y is what you'll want.
Here's another tutorial called styling scrollable areas that uses javascript to style the scroll bar.
Last edited by vangogh; 09-30-2008 at 06:02 PM..
|