I'm also interested in knowing how to change the color of the scroll bars if anyone knows how to do that as well.
Main Topics
Browse All TopicsI have a div tag that is going to receive more text than it can normally display based on the size limitations I have given to it. In order to compensate for that I have used the "overflow:scroll" css rule. It applies a scroll bar vertically to the right side of the <div> and a horizontal scroll bar at the bottom of the <div>. I only want the vertical scroll bar to be seen. Is there any way to eliminate the horizontal bar?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
you can style scrollbars for IE or Opera, other browsers don't do anything. as the CSS for this isn't part of the official spec. This will work for the main page itself, but not for specific divs with overflow.
there javascripts that you can use to style scrollbars for overflow divs:
http://www.pizzulli.com/pr
ref:
I wrote a javascript that converts divs with a certain class and
overflow:auto; to having a custom scrollbar defined by the CSS -- if
the script doesn't run, you still have overflow:auto;.
The script itself has a couple quirks I'd like to work out, but it's
fine for certain uses. I've got it running on the "works" section of
this site: http://tinyurl.com/695bw (a tinyurl so that searches for
this client don't point to CSS archives!) Visit a couple different
works pages to see:
- no scrollbar for short content
- the thumb tab is the proper ratio for the content
- all three normal scrolling actions work: click-scroll, click-jump,
and drag-scroll
This particular scrollbar is simply styled, but everything is defined
as divs with classes in the CSS so there's no reason you can't have a
background url. Contact me off-list if you want more info.
Business Accounts
Answer for Membership
by: VirusMinusPosted on 2007-02-05 at 13:13:59ID: 18471380
"overflow-y:scroll"
also you could force it the other way: "overflow-x:hidden"