Two CSS tricks for moving vertical scrollbars to the opposite side
First, the caveat: the technique below breaks a deeply ingrained expectation about where scrollbars belong. Scrollbars help a lot of people, and for many they are a core accessibility feature — so [author] would not recommend this broadly.
Still, it makes for an interesting CSS trick, and the web has no shortage of odd situations that call for odd solutions.
Technique #1: Flip the text direction
Give the scrolling parent direction: rtl — or whichever direction is the opposite of your primary one — then switch the element's inner content back to your normal direction.
Technique #2: Rotate the container
Changing text direction for reasons unrelated to text direction can feel a bit scary, which makes this second option feel less hacky. Rotate the parent by 180deg and rotate the child another 180deg so it sits upright again. That first rotation is what moves the scrollbar to the opposite side.
The approach comes with two awkward side effects:
- The scrolling element starts out scrolled to the bottom.
- Scrolling feels reversed — a mouse wheel or trackpad behaves as though the scroll direction in that element has been flipped. The scrollbar itself should mostly behave as expected.
It reads more like an April Fool's joke than something practical. A viral tweet described it as cursed, and that's fair.



