Jump to content

scrolling without frames


steffalynn
 Share

Recommended Posts

HTML

<div class="scroll-box">content here...</div>

CSS

.scroll-box{	width: 300px;	height: 125px;	overflow: auto;}

You can adjust the width and height to suit your situation. When the content i the <div> grows beyond the dimensions of the <div> it will create scroll bars to accomodate.

Link to comment
Share on other sites

  • 2 weeks later...

Okay, so now that I have the basic scroll box in there, how do I change the colour of the box and bar? Can I use an image? In particular, I want to be able to control the colour of it but keep the gradient that is in the windows' theme, and I would assume I need to make an img in order to do that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...