steffalynn Posted November 7, 2006 Share Posted November 7, 2006 Hey, I was wondering how I could get a scroll box on my page without using frames. I want to format the text in it and it needs to be non-editable.I just hate frames, but a scroll box would keep everything above the fold.Thanks! Link to comment Share on other sites More sharing options...
aspnetguy Posted November 7, 2006 Share Posted November 7, 2006 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 More sharing options...
steffalynn Posted November 7, 2006 Author Share Posted November 7, 2006 Excellent, thank you! Link to comment Share on other sites More sharing options...
steffalynn Posted November 20, 2006 Author Share Posted November 20, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now