Monday, 17 February 2014

How to show scroll bar in left side using css 2

By default scroll bar appears in right side of the div. We can set it in left side also. We can do it from overflow property of css style itself.

to make scroll bar, we should use css property
overflow : scroll;
by default scroll bar uses direction propery as ltr. ltr is stands for left to right.  
overflow : scroll;
direction : ltr;

If you want to set scroll bar in left side, we need to set it to rtl. rtl is stands for right to left.
overflow : scroll;
direction : rtl;
Here you can find the DEMO

2 comments:

  1. Much needed information with demo is really appreciable..

    ReplyDelete
  2. thanks for your appreciation @Aravinth A

    ReplyDelete