How to position a div scrollbar on the left hand side?

前端 未结 7 1083
别跟我提以往
别跟我提以往 2020-12-01 00:38

Is it possible to specify a position (left or right hand side) for the placement of a vertical scrollbar on a div?

For example look at this page which explains how

7条回答
  •  再見小時候
    2020-12-01 01:25

    You could try direction:rtl; in your css. Then reset the text direction in the inner div

    #scroll{
        direction:rtl; 
        overflow:auto; 
        height:50px; 
        width:50px;}
    
    #scroll div{
        direction:ltr;
    }
    

    Untested.

提交回复
热议问题