views:

220

answers:

3

Hi, is there a way with css or js to show the scrollbar of an element on the left instead of on the right? i don't need a crossbrowser way i need it only on Firefox.

A: 

Try

<textarea dir="rtl">

or

<body dir="rtl"> 

or

<html dir="rtl">
powtac
+2  A: 

Possible dupe: http://stackoverflow.com/questions/1455708/div-vertical-scroll-bar-on-left

But that has a very nice jQuery solution you should check out.

Kyle Sevenoaks
+2  A: 

If you want the direction to be left-to-right, but still want to violate every expectation a user has to scrollbars, then you can hack it using javascript.
Simply create a 1px wide div on the left side of your content. Have it be the same height as the content which you want to scroll. Then hook up an onscroll event to that div and whenever the user scrolls that div, you can scroll the content area manually.

Some further tips: main content area needs to have overflow:hidden and you can use negative values for margin-top to fake the scrolling.

peirix
Great idea, i like it
mck89