That is, the content is on one line, but you can scroll left and right to see more text
You need two boxes, fixed width and height on the outside, overflow:auto; The inside is wider or white than the outside- space:nowrap That's it.
Using white- space:nowrap To ban line breaks
Add overflow-x: scroll to CSS
In CSS, set overflow-x: scroll as horizontal scroll bar and overflow-y: scroll as vertical scroll bar for Div.