10-05-2011 05:58 AM
I'm looking for the code for a vertical scrollbar. I researched various documents and implemented with CSS overflow : auto . It doesn't work and searching again i stucked with webkit-scrollbar in Github, it is working fine with the whole body and not with div element........... Anybody have a code or any guide where to find the code.
Solved! Go to Solution.
10-05-2011 07:26 AM
<div style="border:1px solid black;width:200px;height:100px;overflow:scroll;ove
By using overflow-y, we can create scroll bars when the contents of this div are bigger/higher than the container. Also, by setting this paragraph to 250 percent, it is automatically 250 percent higher than the parent container - forcing an overflow.
<p style="font-size:10px;"><a href="http://www.quackit.com/html/codes/">HTML code</a></p>
10-07-2011 11:20 AM
I had a scroll bar issue and this solved it: http://supportforums.blackberry.com/t5/Web-and-Web
Does this help you?
10-10-2011 08:28 AM
I checked that before, but i can include scroll to the body and not to div. Did you used for div then please post the code here.............
10-10-2011 09:50 AM
Just by adding the scrollbar code to the css the page automatically adds it where/when ever needed. I didn't attach it to any particular element.
Many style options available: http://css-tricks.com/9130-custom-scrollbars-in-we
10-12-2011 01:06 AM
Thank you for your help. It worked. I copied the code from http://css-tricks.com/examples/WebKitScrollbars/ and then added an overflow:auto to my div element.