Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome shows vertical scrollbar at the right side when using direction:rtl

When I put style='direction: rtl;' the vertical scrollbar should switch sides and show on the left instead of right. This is how it works in IE and FF, but in Chrome it remains on the right.

Is it a known bug? Is there any way to fix it?

like image 783
Elad Katz Avatar asked Dec 28 '11 15:12

Elad Katz


People also ask

How do I change the position of my scroll bar?

We can use the CSS “::-webkit-scrollbar” property which is responsible for changing the shape, color, size, shade, shadow, etc. of the scroll bar. But, here the property which we will use is the direction property of CSS for changing the position of the scroll bar.

How do I move the scroll bar to the left CSS?

No, you can't change scrollbars placement without any additional issues. You can change text-direction to right-to-left ( rtl ), but it also change text position inside block.

Can you move the scroll bar to the left?

Unfortunately, you cannot change the default side that the scroll bar on web pages is displayed on. by default, web pages written in languages that flow left to right (like English, Italian etc) show the vertical scroll bar on the right, languages that flow right to left show the vertical scroll bar on the left.


1 Answers

This is a known webkit bug. The scroll will render on the right in Safari, as well.

There's an answer here that has several different workarounds, including the jQuery plugin jScrollPane and a native-looking hack.

like image 91
Josh Smith Avatar answered Sep 16 '22 16:09

Josh Smith