javascript div scroll horizontal





I have content in a horizontal div that exceeds the page area so that to see all of it you have to scroll horizontally.I have a (React) component which contains many

s of text mapped from an array. The height of the container is small, and I used Javascript to implement scrolling. Making text elements like paragraphs fit the visible area of the scrollable element. Demo. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Some content for horizontal scrolling-->