ONYX
ONYX

Reputation: 5859

css hack for vertical scrollbars

if i make a div element have overflow:scrollbars i get both scroll bars vertical and horizontal all I want is the vertical scrollbars how do i accomplish that

Upvotes: 0

Views: 841

Answers (3)

kobe
kobe

Reputation: 15835

Here is your aswer

use overflow-y

jscroll pane is very nice plugin for these kind of stuff

http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html

Upvotes: 1

Nirmal
Nirmal

Reputation: 4829

You need

overflow-y : visible

overflow-x : hidden

. All the available options are listed here.

Upvotes: 2

Harry Joy
Harry Joy

Reputation: 59660

Instead of overflow use overflow-y in css.

overflow-y: String

Specifies how to handle content overflow of an element if the content is too tall for the element.

Supported: IE 6.0+

But might not support some browsers so its better if you design your div so that elements do not exceed the x limit.

Upvotes: 2

Related Questions