tags:

views:

59

answers:

5

How to hide the vertical scroll bar using CSS? Can any one help me?

A: 

I believe you can manipulate it with the overflow CSS attribute, but they have limited browser support. One source said it was IE5+, Firefox 1.5+, and Safari 3+ - maybe enough for your purposes.

This link has a good discussion: http://www.search-this.com/2008/03/26/scrolling-scrolling-scrolling/

Stefan Mohr
A: 

Set overflow: hidden; on the body tag like this:

<style type="text/css">
body {
    overflow:hidden;
}
</style>

update: i meant hidden, sorry, just woke up :-)

jao
There is no "none" option for overflow property. Available options include: visible, hidden, scroll, auto, inherit.
Sergiy
+2  A: 

To disable verticle scroll bar just add : Overflow-y:hidden;

Find more about :overFlow

Pranay Rana
A: 

Use css overflow property:

.noscroll {
  width:150px;
  height:150px;
  overflow: auto; /* or hidden, or visible */
}

Here are some more examples:

Sergiy
+1  A: 

As the other people already said, use CSS overflow.

But if you still want the user to be able to scroll that content (without the scrollbar being visible) you have to use JavaScript. Se my answer here for a solution: http://stackoverflow.com/questions/3293650/hide-scrollbar-while-still-able-to-scroll-with-mouse-keyboard/

Peter Forss