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
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.