Overflow-auto not showing all content
I have a tablist and I have it to overflow auto however it does not scroll to show all the content
2 Replies
Take off
justify-content: center
from the .tablist
.
The browser add the scrollbar because content is overflowing out the right side, it doesn't look for things overflowing out the left.
Try placing an element on a page and adding a margin-left: 100rem
, it adds a scrollbar so you can get to that content. Add a margin-left: -100rem
and it vanishes.
With the overflow there, the browser is only looking for what's overflowing out the right side, even though content has overflowed in both directions because of the justify-content: center
. As far as I know, there's no way to have both of them.thnx @Kevin