javascript - How can i make a scrollbar start on the right and not the left? -
this question has answer here:
i have done css direction: rtl;
text displayed right left, isn't want.
is there way make direction: rtl;
not modify text , scrollbar or how make scrollbar have same behavior direction: rtl;
without displaying text right left?
i can use jquery , open using library if it's necessary.
let's start stating should not this, if can't resist can do:
html
<body> <div class="inner"> content here </div> </body>
css
body { direction: rtl; } .inner { direction: ltr; }
what think should build whatever application you're working on in way browser understands. if want scrollbar direction opposite, build site that. if don't have support legacy browsers, can build such thing flexbox
, flex-direction: row-reverse
.
Comments
Post a Comment