that is, the content is on one line, but you can scroll left and right to see more text
that is, the content is on one line, but you can scroll left and right to see more text
use white-space:nowrap
to prohibit line wrapping
css add overflow-x: scroll
CSS to set overflow-x: scroll (horizontal scroll bar) and overflow-y: scroll (vertical scroll bar) for div.
two boxes are needed, the outside is fixed width and height, the inside of overflow:auto; is wider than the outside, or white-space:nowrap is fine.
<div style='width:200px;overflow:auto;'>
<p style='white-space:nowrap'>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</div>