make a single row of divs with horizontal scroll bars

前端 未结 4 1904
[愿得一人]
[愿得一人] 2021-02-06 04:18

Ok so I thought I had this fixed using white-space:no-wrap it worked in chrome but nothing else.

I have something like this:

4条回答
  •  北海茫月
    2021-02-06 05:12

    You need to put one massive horizontal div inside the parent div with overflow: auto; This will allow the to float left without wrapping to the next line, and it will only scroll when the boundary of the parent div is crossed.

提交回复
热议问题