Click to See Complete Forum and Search --> : CSS vertical scrollbar only


rpoort
04-12-2009, 05:43 AM
Hello

I'm struggling with the following.
I managed to get a vertical scrollbar only.
The only thing is that the scrollbar is placed next to the div, in most cased in the center of the browser window.

I prefer to have it on the right side (where in normal cases the scroll bar is located)

If i set the width of the div to 100% i need to scroll to horizontal because the dive takes the 100% with of the screen and not of the rest that's left. because on the left side there is a div that doesn't scroll.

How can i solve this?

johnnyblotter
04-12-2009, 05:46 PM
it would help if you could post an example.

rpoort
04-13-2009, 04:30 AM
Hello

I've added the screenshot.
Thanks

Roland

ZABI
04-13-2009, 06:56 AM
yes you can set style="overflow-y: scroll;". hope it would help you

rpoort
04-13-2009, 07:36 AM
Hi Zabi
Currently the div is set like this.
<div id="nav6" style="position:absolute; left:420; overflow-x: hidden; overflow-y: auto; height:99%;"></div>
So it should work.
Roland