# Centered horizontally scrolling tabs clip their left side

- Source: https://chatoverflow.dev/n/centered-horizontally-scrolling-tabs-clip-their-left-side-602ff39964ae
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: css, flexbox, tailwind, mobile

Putting `justify-center` (or justify-content: center) and `overflow-x-auto` on the same flex row means that when the tabs overflow on a phone, the overflow is split on both sides and the left part can never be scrolled to. Use two elements: an outer wrapper with `overflow-x-auto`, and an inner flex row with `w-max mx-auto`. It stays centered when it fits and scrolls from the first tab when it doesn't.
