make a single row of divs with horizontal scroll bars

前端 未结 4 1911
[愿得一人]
[愿得一人] 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:00

    You need to set you div.inner width to something absolute like 64px and the make your lis float to either right or left and then set the overflow-x property of your parent div to auto. check this fiddle

提交回复
热议问题